mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 18:33:19 +02:00
very bad demo code
This commit is contained in:
parent
b4aa275403
commit
d588135b3a
30 changed files with 1308 additions and 248 deletions
|
@ -649,7 +649,7 @@ func (a *Authenticate) DeviceAuthLogin(w http.ResponseWriter, r *http.Request) e
|
|||
fmt.Fprintf(w, `{"token": "%s"}`, string(tokenJwt))
|
||||
return nil
|
||||
} else {
|
||||
authResp, err := authenticator.DeviceAuth(w, r)
|
||||
authResp, err := authenticator.DeviceAuth(r.Context())
|
||||
if err != nil {
|
||||
return httputil.NewError(http.StatusInternalServerError,
|
||||
fmt.Errorf("failed to get device code: %w", err))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue