Comments (7)
Hey @MitPitt, forward auth should be what you want. This functionality is currently broken in obligator (it's not used by LastLogin), but it should be pretty easy for me to fix. The settings should be almost the same as Authentik. Do you know what Authentik headers you're currently making use of?
from obligator.
I'm protecting a dashboard and some other static pages, which do not require authorization. Hence I am not making use of any headers. Just protecting the dashboard with an authentication layer.
In the Caddy config I linked above, the uri /outpost.goauthentik.io/auth/caddy
looks like a feature of Authentik which seems to autofill the auth request. Obligator should have something similar.
from obligator.
Ah ok you should be good to go then. Just use the /validate
endpoint on the obligator server. Note that vouch might be a more battle-tested alternative that will work for you.
from obligator.
@MitPitt I just did a new beta release so you don't have to build manually if you wanted to try this.
from obligator.
Would you also mind building a docker image please? I noticed that latest image on docker hub is 6 months old now
from obligator.
I tried running the binary now with ./obligator-linux-x64-0.2.0 -storage-dir ./data -root-uri https://obligator.mywebsite.com -port 1616 -api-socket-dir ./api
Now it shows 404 page not found
when I visit obligator.mywebsite.com. This doesn't happen when I run the binary of previous version (Beta 0.1.0
) in the same way.
I also tried the following Caddyfile:
obligator.mysebsite.com {
reverse_proxy localhost:1616
}
mysebsite.com {
reverse_proxy /auth* http://obligator.mysebsite.com:1616
forward_auth http://obligator.mysebsite.com:1616 {
uri /validate
}
# the app i'm protecting
reverse_proxy localhost:1234
}
Shows client_id missing
at https://obligator.mysebsite.com/auth?client_id=&redirect_uri=&response_type=code&state=&scope=
from obligator.
Hey @MitPitt, sorry I'm traveling at the moment, but I'll take a look at this when I get back.
from obligator.
Related Issues (20)
- Should probably just remove the state parameter for upstream requests
- Implement dynamic client registration HOT 1
- Document that obligator intentionally violates draft-ietf-oauth-security-topics-24 4.1.3 by allowing any redirect URI that is a suffix of the client_id domain
- Implement login cookie editor
- Encrypt all cookies
- Need to properly validate URL params at token endpoint. Currently only requiring the code
- Implement copying logins when sharing via QR HOT 1
- Fix QR issues HOT 1
- Add Impersonation? HOT 2
- TLSAuth parameter for SMTP HOT 1
- Provide some sort of username in /userinfo HOT 1
- lastlogin.io demo sends emails with invalid magic links HOT 8
- [feedback] Kanidm comparison table line items HOT 4
- usage with cli tools HOT 2
- Docker repo is 404 HOT 2
- suggestion for future consideration: WebAuthN FIDO2 (passkeys) HOT 1
- Add proper lifetimes to JWT cookies
- Implement scoping control for all cookies
- Add Portier to the table HOT 1
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 obligator.