AccessToken defines the attribute used to provide the access token to an endpoint secured with OAuth2. The parameters and usage of AccessToken are the same as the goa DSL Attribute function. The generated code produced by goa uses the value of the corresponding payload field to initialize the Autho
(name string, args ...any)
| 545 | // }) |
| 546 | // }) |
| 547 | func AccessToken(name string, args ...any) { |
| 548 | args = useDSL(args, func() { Meta("security:accesstoken") }) |
| 549 | Attribute(name, args...) |
| 550 | } |
| 551 | |
| 552 | // AccessTokenField is syntactic sugar to define an access token attribute with the |
| 553 | // "rpc:tag" meta set with the value of the first argument. |