mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
autenticate: fix some typos (#939)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
7dfa1d0a41
commit
cfbc5c2114
1 changed files with 2 additions and 4 deletions
|
@ -81,8 +81,6 @@ func (a *Authenticate) Mount(r *mux.Router) {
|
|||
wk.Path("/jwks.json").Handler(httputil.HandlerFunc(a.jwks)).Methods(http.MethodGet)
|
||||
wk.Path("/").Handler(httputil.HandlerFunc(a.wellKnown)).Methods(http.MethodGet)
|
||||
|
||||
// https://www.googleapis.com/oauth2/v3/certs
|
||||
|
||||
// programmatic access api endpoint
|
||||
api := r.PathPrefix("/api").Subrouter()
|
||||
api.Use(sessions.RetrieveSession(a.sessionLoaders...))
|
||||
|
@ -138,7 +136,7 @@ func (a *Authenticate) VerifySession(next http.Handler) http.Handler {
|
|||
}
|
||||
|
||||
if a.sessionClient != nil {
|
||||
_, err = session.Get(r.Context(), a.dataBrokerClient, sessionState.ID)
|
||||
_, err = session.Get(ctx, a.dataBrokerClient, sessionState.ID)
|
||||
if err != nil {
|
||||
log.FromRequest(r).Info().Err(err).Str("id", sessionState.ID).Msg("authenticate: session not found in databroker")
|
||||
return a.reauthenticateOrFail(w, r, err)
|
||||
|
@ -524,7 +522,7 @@ func (a *Authenticate) saveSessionToDataBroker(ctx context.Context, sessionState
|
|||
}
|
||||
err := a.provider.UpdateUserInfo(ctx, accessToken, &mu)
|
||||
if err != nil {
|
||||
return fmt.Errorf("authenticate: error retrieving uesr info: %w", err)
|
||||
return fmt.Errorf("authenticate: error retrieving user info: %w", err)
|
||||
}
|
||||
_, err = a.userClient.Add(ctx, &user.AddRequest{
|
||||
User: mu.User,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue