auth_handler.go: comment out currently unused fosite wiring
See e8f4336
for why this is here in the first place.
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
parent
d8c8f04860
commit
6fe455c687
@ -32,16 +32,26 @@ func NewHandler(
|
|||||||
generateNonce func() (nonce.Nonce, error),
|
generateNonce func() (nonce.Nonce, error),
|
||||||
) http.Handler {
|
) http.Handler {
|
||||||
oauthHelper := compose.Compose(
|
oauthHelper := compose.Compose(
|
||||||
|
// Empty Config for right now since we aren't using anything in it. We may want to inject this
|
||||||
|
// in the future since it has some really nice configuration knobs like token lifetime.
|
||||||
&compose.Config{},
|
&compose.Config{},
|
||||||
|
|
||||||
|
// This is the thing that matters right now - the store is used to get information about the
|
||||||
|
// client in the authorization request.
|
||||||
oauthStore,
|
oauthStore,
|
||||||
&compose.CommonStrategy{
|
|
||||||
// Shouldn't need any of this - we aren't doing auth code stuff, issuing ID tokens, or signing
|
// Shouldn't need any of this filled in as of right now - we aren't doing auth code stuff,
|
||||||
// anything yet.
|
// issuing ID tokens, or signing anything yet.
|
||||||
},
|
&compose.CommonStrategy{},
|
||||||
nil, // hasher, shouldn't need this - we aren't doing any client auth...yet?
|
|
||||||
compose.OAuth2AuthorizeExplicitFactory,
|
// hasher, shouldn't need this right now - we aren't doing any client auth...yet?
|
||||||
compose.OpenIDConnectExplicitFactory,
|
nil,
|
||||||
compose.OAuth2PKCEFactory,
|
|
||||||
|
// We will _probably_ want the below handlers somewhere in the code, but I'm not sure where yet,
|
||||||
|
// and we don't need them for the tests to pass currently, so they are commented out.
|
||||||
|
// compose.OAuth2AuthorizeExplicitFactory,
|
||||||
|
// compose.OpenIDConnectExplicitFactory,
|
||||||
|
// compose.OAuth2PKCEFactory,
|
||||||
)
|
)
|
||||||
return httperr.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
return httperr.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
||||||
if r.Method != http.MethodPost && r.Method != http.MethodGet {
|
if r.Method != http.MethodPost && r.Method != http.MethodGet {
|
||||||
|
Loading…
Reference in New Issue
Block a user