Authentication Security Best Practices
insecure-oauth2-grants
general > insecure-oauth2-grants
Guidance / Message
Avoid OAuth2 implicit and resource owner password grants.
Examples
valid
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://example.com/oauth/authorize
tokenUrl: https://example.com/oauth/token
scopes:
'read:pets': read your pets
'write:pets': modify pets in your account
invalid
securitySchemes:
OAuth2:
type: oauth2
flows:
implicit:
authorizationUrl: https://example.com/oauth/authorize
scopes:
'read:pets': read your pets
'write:pets': modify pets in your account
Applies to OAuth2Settings