markbates / markbates/goth

How to use Goth With React Applications

Open
#416 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

Currently goth does all the authentication on a single port. I have a use case where the user will click
on a button on UI which is React Application saying `Sign In With Github` and other buttons with other
provider name running on a different port. UI will send request to goth server and goth server should retun
user details once authenticated

In short
React Application running on port 3000
![image](https://user-images.githubusercontent.com/32545638/127967920-77565a69-b799-4b4b-88f6-7cc55902ac25.png)

Once clicked on button request should be send to goth server running on a port say 4200, does all authentication process and once authenticated goth server returns user details back to React Application

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

This is a cross-origin authentication and integration question rather than a scoped code change; no files or tests are named. Start by tracing Goth's server-side authentication flow and the React application's request/callback boundary; done would be a documented, agreed integration path for the separate ports and provider buttons.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, react
Domain
authentication, backend, frontend
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.