About OAuth support
See original GitHub issueThe OAuth support in Staticman is buggy and very limited. Although is had been there years, I can hardly find any site using this feature.
Currently the OAuth feature:
- is only used to retrieve the user properties such as name or email. (see
Staticman.js::_checkAuth
andStaticman.js::_applyGeneratedFields
) - has nothing to do with how Staticman access your repository.
- is limited to the same git service. You can’t authenticate with GitHub on site hosted on GitLab.
- doesn’t handle the redirection. It’s your responsibility redirecting guest to OAuth provider.
- failed when profile has no email available. (on GitHub you can leave it empty) (No related issue yet)
Can someone explain why and how is this feature added at then? What is the plan in future?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
OAuth Community Site
OAuth is a way to get access to protected data from an application. It's safer and more secure than asking users to log...
Read more >What the Heck is OAuth? - Okta Developer
What Is OAuth? To begin at a high level, OAuth is not an API or a service: it's an open standard for authorization...
Read more >OAuth - Wikipedia
OAuth (short for "Open Authorization") is an open standard for access delegation, commonly used as a way for internet users to grant websites...
Read more >OAuth 2.0 Authorization Framework - Auth0
The OAuth 2.0 authorization framework is a protocol that allows a user to grant a third-party web site or application access to the...
Read more >What is OAuth and How Does it Work? - TechTarget
OAuth, which is pronounced "oh-auth," enables an end user's account information to be used by third-party services, such as Facebook and Google, without ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you.
This isn’t something we can pick up right away, but it’s definitely something to add to the backlog. I agree with your assessment that the git provider and the profile provider don’t need to be coupled.
I think in the end we could simplify this whole flow to one Staticman API call which is submitted by the site’s form. Redirects would handle the rest. We could move the auth info to somewhere optional in the
entry
request so one call contains all the info to auth and post content. This will require further thought to handle the following cases:access_token
from the oauth requestThanks for all the initial work on this. OIDC looks like a pretty good fit.