Comments (6)
I'm open for suggestions on how to fix/change things for a potential v2.
from goth.
I don't think you need do a rev on goth to make this work. This is more commentary about how the slack provider works. It looks to be a simple copy and paste of the box provider without considering how it would actually be used. I'm tweaking a local copy now to see what changes need to be made.
from goth.
More thoughts on this. IF there was a v2, I would like the ability to have more than one instance of a provider. If you are dealing with a single provider with multiple scopes (because you have multiple users), things can get a bit hairy with the default setup. It's possible to maintain your own list of providers, so this is something that can be worked around.
from goth.
With #130 it is now possible to set a name to the provider which makes it possible to have multiple instances of the same provider.
https://github.com/markbates/goth/blob/master/provider.go#L15
from goth.
@bryanl can you confirm if the bot data can be retrieved from the endpointProfile https://slack.com/api/users.info ?
Because if so, it should be available inside gothUser.RawData : https://github.com/markbates/goth/blob/master/providers/slack/slack.go#L116
With that RawData you can than afterwards parse out your requested data
If it is not available, please let me know
from goth.
Closing this due to age, feel free to re-open if it's still an issue.
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
- Support for non-global set of providers HOT 4
- 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.