From 8bf6fa63b20accd014f80f4f548856389105c884 Mon Sep 17 00:00:00 2001 From: Colum <433045+volfco@users.noreply.github.com> Date: Sat, 23 Nov 2024 04:51:04 +0000 Subject: [PATCH] Fix rfc links --- introspection_request_handler.go | 2 +- introspection_response_writer.go | 4 ++-- oauth2.go | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/introspection_request_handler.go b/introspection_request_handler.go index f1fdedd6..bcd22a13 100644 --- a/introspection_request_handler.go +++ b/introspection_request_handler.go @@ -17,7 +17,7 @@ import ( ) // NewIntrospectionRequest initiates token introspection as defined in -// https://tools.ietf.org/search/rfc7662#section-2.1 +// https://tools.ietf.org/html/rfc7662#section-2.1 // // The protected resource calls the introspection endpoint using an HTTP // POST [RFC7231] request with parameters sent as diff --git a/introspection_response_writer.go b/introspection_response_writer.go index e0a3763e..ac34c874 100644 --- a/introspection_response_writer.go +++ b/introspection_response_writer.go @@ -13,7 +13,7 @@ import ( ) // WriteIntrospectionError responds with token metadata discovered by token introspection as defined in -// https://tools.ietf.org/search/rfc7662#section-2.2 +// https://tools.ietf.org/html/rfc7662#section-2.2 // // If the protected resource uses OAuth 2.0 client credentials to // authenticate to the introspection endpoint and its credentials are @@ -53,7 +53,7 @@ func (f *Fosite) WriteIntrospectionError(ctx context.Context, rw http.ResponseWr } // WriteIntrospectionResponse responds with an error if token introspection failed as defined in -// https://tools.ietf.org/search/rfc7662#section-2.3 +// https://tools.ietf.org/html/rfc7662#section-2.3 // // The server responds with a JSON object [RFC7159] in "application/ // json" format with the following top-level members. diff --git a/oauth2.go b/oauth2.go index 0827b8ed..699c176d 100644 --- a/oauth2.go +++ b/oauth2.go @@ -145,15 +145,15 @@ type OAuth2Provider interface { IntrospectToken(ctx context.Context, token string, tokenUse TokenUse, session Session, scope ...string) (TokenUse, AccessRequester, error) // NewIntrospectionRequest initiates token introspection as defined in - // https://tools.ietf.org/search/rfc7662#section-2.1 + // https://tools.ietf.org/html/rfc7662#section-2.1 NewIntrospectionRequest(ctx context.Context, r *http.Request, session Session) (IntrospectionResponder, error) // WriteIntrospectionError responds with an error if token introspection failed as defined in - // https://tools.ietf.org/search/rfc7662#section-2.3 + // https://tools.ietf.org/html/rfc7662#section-2.3 WriteIntrospectionError(ctx context.Context, rw http.ResponseWriter, err error) // WriteIntrospectionResponse responds with token metadata discovered by token introspection as defined in - // https://tools.ietf.org/search/rfc7662#section-2.2 + // https://tools.ietf.org/html/rfc7662#section-2.2 WriteIntrospectionResponse(ctx context.Context, rw http.ResponseWriter, r IntrospectionResponder) // NewPushedAuthorizeRequest validates the request and produces an AuthorizeRequester object that can be stored @@ -171,7 +171,7 @@ type OAuth2Provider interface { // IntrospectionResponder is the response object that will be returned when token introspection was successful, // for example when the client is allowed to perform token introspection. Refer to -// https://tools.ietf.org/search/rfc7662#section-2.2 for more details. +// https://tools.ietf.org/html/rfc7662#section-2.2 for more details. type IntrospectionResponder interface { // IsActive returns true if the introspected token is active and false otherwise. IsActive() bool