Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions for using casbin on Hugo static sites secured with oauth2? #103

Closed
shah opened this issue May 31, 2018 · 3 comments
Closed

Suggestions for using casbin on Hugo static sites secured with oauth2? #103

shah opened this issue May 31, 2018 · 3 comments
Assignees
Labels

Comments

@shah
Copy link

shah commented May 31, 2018

I am using Hugo for static site generation and was wondering if there was a way to use casbin with an oauth2 layer to secure certain pages? It seems quite powerful and seemingly possible but would love to hear if anyone's done something similar so I can learn some techniques.

@hsluoyz
Copy link
Member

hsluoyz commented Jun 1, 2018

If I understand correct, Hugo runs a static site, which is front-end only (html, js, css). But Casbin is a Golang library, which means you have to use Golang as backend. So how do you want Casbin to serve the authorization need for a static site?

@hsluoyz hsluoyz self-assigned this Jun 1, 2018
@shah
Copy link
Author

shah commented Jun 2, 2018

Good question @hsluoyz - I'm using Hugo as a static site generator but serving it with oauth2_proxy library (basically an HTTP server which wraps the static site in various oauth2 providers like Google, GitHub, LinkedIn, etc.). One of the things the oauth2_proxy lacks is fine-grained authorization so I thought I would try to couple casbin with oauth2_proxy and was wondering if anyone had done anything similar. Thanks!

@hsluoyz
Copy link
Member

hsluoyz commented Dec 19, 2020

@shah https://github.com/bitly/oauth2_proxy has been deprecated. My issue there: bitly/oauth2_proxy#612 is also unanswered.

Will close this issue for now. Welcome if there are new issues!

@hsluoyz hsluoyz closed this as completed Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants