Requester is an abstract interface for handling requests in Fosite.
| 221 | |
| 222 | // Requester is an abstract interface for handling requests in Fosite. |
| 223 | type Requester interface { |
| 224 | // SetID sets the unique identifier. |
| 225 | SetID(id string) |
| 226 | |
| 227 | // GetID returns a unique identifier. |
| 228 | GetID() string |
| 229 | |
| 230 | // GetRequestedAt returns the time the request was created. |
| 231 | GetRequestedAt() (requestedAt time.Time) |
| 232 | |
| 233 | // GetClient returns the request's client. |
| 234 | GetClient() (client Client) |
| 235 | |
| 236 | // GetRequestedScopes returns the request's scopes. |
| 237 | GetRequestedScopes() (scopes Arguments) |
| 238 | |
| 239 | // GetRequestedAudience returns the requested audiences for this request. |
| 240 | GetRequestedAudience() (audience Arguments) |
| 241 | |
| 242 | // SetRequestedScopes sets the request's scopes. |
| 243 | SetRequestedScopes(scopes Arguments) |
| 244 | |
| 245 | // SetRequestedAudience sets the requested audience. |
| 246 | SetRequestedAudience(audience Arguments) |
| 247 | |
| 248 | // AppendRequestedScope appends a scope to the request. |
| 249 | AppendRequestedScope(scope string) |
| 250 | |
| 251 | // GetGrantedScopes returns all granted scopes. |
| 252 | GetGrantedScopes() (grantedScopes Arguments) |
| 253 | |
| 254 | // GetGrantedAudience returns all granted audiences. |
| 255 | GetGrantedAudience() (grantedAudience Arguments) |
| 256 | |
| 257 | // GrantScope marks a request's scope as granted. |
| 258 | GrantScope(scope string) |
| 259 | |
| 260 | // GrantAudience marks a request's audience as granted. |
| 261 | GrantAudience(audience string) |
| 262 | |
| 263 | // GetSession returns a pointer to the request's session or nil if none is set. |
| 264 | GetSession() (session Session) |
| 265 | |
| 266 | // SetSession sets the request's session pointer. |
| 267 | SetSession(session Session) |
| 268 | |
| 269 | // GetRequestForm returns the request's form input. |
| 270 | GetRequestForm() url.Values |
| 271 | |
| 272 | // Merge merges the argument into the method receiver. |
| 273 | Merge(requester Requester) |
| 274 | |
| 275 | // Sanitize returns a sanitized clone of the request which can be used for storage. |
| 276 | Sanitize(allowedParameters []string) Requester |
| 277 | } |
| 278 | |
| 279 | // AccessRequester is a token endpoint's request context. |
| 280 | type AccessRequester interface { |
no outgoing calls
no test coverage detected