20 lines
478 B
Go
20 lines
478 B
Go
|
// Copyright 2022 the Pinniped contributors. All Rights Reserved.
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package login
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/ory/fosite"
|
||
|
|
||
|
"go.pinniped.dev/internal/oidc"
|
||
|
)
|
||
|
|
||
|
func NewPostHandler(upstreamIDPs oidc.UpstreamIdentityProvidersLister, oauthHelper fosite.OAuth2Provider) HandlerFunc {
|
||
|
return func(w http.ResponseWriter, r *http.Request, encodedState string, decodedState *oidc.UpstreamStateParamData) error {
|
||
|
// TODO
|
||
|
return nil
|
||
|
}
|
||
|
}
|