authenticate: implement hpke-based login flow (#3779)

* urlutil: add time validation functions

* authenticate: implement hpke-based login flow

* fix import cycle

* fix tests

* log error

* fix callback url

* add idp param

* fix test

* fix test
This commit is contained in:
Caleb Doxsey 2022-12-05 15:31:07 -07:00 committed by GitHub
parent 8d1235a5cc
commit 57217af7dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 656 additions and 661 deletions

View file

@ -60,7 +60,7 @@ func (s *State) WithNewIssuer(issuer string, audience []string) State {
}
// UserID returns the corresponding user ID for a session.
func (s *State) UserID(provider string) string {
func (s *State) UserID() string {
if s.OID != "" {
return s.OID
}