📝 Format ResponseType domain comments

This commit is contained in:
Maxim Lebedev 2023-11-23 16:45:22 +06:00
parent 7b5986eac4
commit d3e2ec81e4
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 7 additions and 3 deletions

View File

@ -18,14 +18,18 @@ type ResponseType struct {
var ( var (
ResponseTypeUnd = ResponseType{responseType: ""} // "und" ResponseTypeUnd = ResponseType{responseType: ""} // "und"
// Deprecated(toby3d): Only accept response_type=code requests, and for // ResponseTypeID indicates to the authorization server that this is an
// authentication request. If this parameter is missing, the
// authorization endpoint MUST default to id.
//
// Deprecated: Only accept response_type=code requests, and for
// backwards-compatible support, treat response_type=id requests as // backwards-compatible support, treat response_type=id requests as
// response_type=code requests: // response_type=code requests:
// https://aaronparecki.com/2020/12/03/1/indieauth-2020#response-type // https://aaronparecki.com/2020/12/03/1/indieauth-2020#response-type
ResponseTypeID = ResponseType{responseType: "id"} // "id" ResponseTypeID = ResponseType{responseType: "id"} // "id"
// Indicates to the authorization server that an authorization code // ResponseTypeCode indicates to the authorization server that an
// should be returned as the response: // authorization code should be returned as the response:
// https://indieauth.net/source/#authorization-request-li-1 // https://indieauth.net/source/#authorization-request-li-1
ResponseTypeCode = ResponseType{responseType: "code"} // "code" ResponseTypeCode = ResponseType{responseType: "code"} // "code"
) )