markbates / markbates/goth

this is more of a question...

Open
#597 4 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

is it possible to have two callback URL in a single we app, adding more context would better explain me. So, my application has two types of user models (accounts [the usual "users" ] & agents) with diff. UI but running on the same backend. The endpoint would look like this;

mysite.com/account/google/callback

&

mysite.com/agent/google/callback

for the same provider (google).

i tried adding the two callback here but it not going through even after i included the second on the Google OUATH2 API console. Is this a limitation of the gothic (i read somehow it simpleton, so no two instance can exist -if that can be a solution though) Or this would'nt be possible by the spec itself? thanks.

	gothic.Store = store
	goth.UseProviders(
		google.New(cfg.LoginProvider.Google.ClientKey, cfg.LoginProvider.Google.Secret, callbackURL),
	)

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

Start with the shown gothic.Store, goth.UseProviders, and Google callbackURL configuration, then trace how the provider handles the two account and agent callback paths. Done means determining whether one Google provider can support both URLs and documenting or implementing the supported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.