orangy
Hawk
10/25/2017, 9:32 PMorangy
Hawk
10/25/2017, 10:12 PMroute("/thing") {
authentication { someBasicAuth() }
post {}
route("/{thingId}") {
authentication { idBasedAuth() }
post {}
}
}
I think for that to work we need to have a stack of authenticators and walk through each one based on the route
/thing would trigger someBasicAuth whereas /thing/1 would trigger both someBasicAuth and idBasedAuth.
2 options for that I think could be
- Authenticator would set a principal, but only the last authenticators prinical would be set at the end of authentication pipeline
- A principal is associated to each Authenticator meaning you would have multple principalsgeekasm
10/26/2017, 4:35 AM