Authentication Security Best Practices
valid-oauth2-redirection-urls
general > valid-oauth2-redirection-urls
Guidance
Your API accepts basic credentials transported over the network. All URLs in the API contract must be proper URLs
in a valid format.
Message
Either the authorization or access token URLs for OAuth2 are not valid URLs.
Examples
valid
components:
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://auth.example.com/authorize
tokenUrl: https://auth.example.com/token
invalid
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: thisisnotallowed:*inanurl/*\-+
tokenUrl: thisisnotallowed:*inanurl/*\-+
Applies to OAuth2Flow