Comments (4)
I have some good news, this is already possible :) You can have multiple providers (of the same type even) have different callback URLs (with different domains)
For example:
a := gitea.New(...., callbackURL1)
a.SetName("url1")
b := gitea.New(....,callbackURL2)
b.SetName("url2")
from goth.
Interesting. What is then Providers used for?
from goth.
They are still technically "global" providers, but the map key is updated when you change "setName" (or at least it should be). This is how we achieve what you are wishing to do in Gitea, where we can have multiple of the same provider but with various different config (eg. log into Github, GHE, and GHE Cloud all using different instantiations of the same provider).
from goth.
Thanks!
from goth.
Related Issues (20)
- Alternative Session option
- global_name in RawData not used in discord provider
- Just a question: how may I tell "goth" library what proxy server it has to use?
- When should you generate the code challenge for a `goth`/`gothic` PKCE OAuth flow? HOT 1
- LinkedIn deprecated OAuth login in favour of OIDC HOT 3
- Session is not saved due to logout
- StoreInSession calls Store.New creating a new session every time HOT 1
- Apple should get team id, key id, client id and pem as input
- Google authorization claiming "Bad Request" when I include scopes
- reddit provider not found
- Bitrix24 Provider HOT 1
- Logging in without reauthentication in example code doesn't work HOT 6
- Can't retrieve openidConnect PreferredUsername from User object
- Apple login fails if user decides not to share Apple ID
- Remove link to "maintainer needed"
- No documentation on why there is a defer logout HOT 2
- Updating dependencies breaks login: securecookie: hash key is not set
- Panic using openidConnect provider
- You must select a provider (gin router issue) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goth.