Debian Codegraph @

lib/3rdParty/composer/facile-it/php-openid-client/src/Authorization/AuthRequestInterface.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Facile\OpenIDClient\Authorization;
6
7 use JsonSerializable;
8 use Override;
9
10 /**
11 * @psalm-api
12 */
13 interface AuthRequestInterface extends JsonSerializable
14 {
15 /**
16 * Space delimited scopes. OpenID Connect requests MUST contain the openid scope value.
17 */
18 public function getScope(): string;
19
20 /**
21 * OAuth 2.0 Response Type value that determines the authorization processing flow to be used,
22 * including what parameters are returned from the endpoints used. When using the Authorization Code Flow,
23 * this value is code.
24 */
25 public function getResponseType(): string;
26
27 /**
28 * OAuth 2.0 Client Identifier valid at the Authorization Server.
29 */
30 public function getClientId(): string;
31
32 /**
33 * Redirection URI to which the response will be sent.
34 */
35 public function getRedirectUri(): string;
36
37 /**
38 * Opaque value used to maintain state between the request and the callback.
39 */
40 public function getState(): ?string;
41
42 /**
43 * Informs the Authorization Server of the mechanism to be used for returning parameters from
44 * the Authorization Endpoint.
45 */
46 public function getResponseMode(): ?string;
47
48 /**
49 * String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
50 */
51 public function getNonce(): ?string;
52
53 /**
54 * ASCII string value that specifies how the Authorization Server displays the authentication and consent
55 * user interface pages to the End-User.
56 *
57 * The defined values are:
58 * - page
59 * - popup
60 * - touch
61 * - wrap
62 */
63 public function getDisplay(): ?string;
64
65 /**
66 * Space delimited case sensitive list of ASCII string values that specifies whether the Authorization Server prompts
67 * the End-User for reauthentication and consent.
68 *
69 * The defined values are:
70 * - none
71 * - login
72 * - consent
73 * - select_account
74 */
75 public function getPrompt(): ?string;
76
77 /**
78 * Maximum Authentication Age. Specifies the allowable elapsed time in seconds since the last time the End-User
79 * was actively authenticated by the OP.
80 */
81 public function getMaxAge(): ?int;
82
83 /**
84 * End-User's preferred languages and scripts for the user interface, represented as a space-separated list
85 * of BCP47 [RFC5646] language tag values, ordered by preference.
86 */
87 public function getUiLocales(): ?string;
88
89 /**
90 * ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or
91 * past authenticated session with the Client.
92 */
93 public function getIdTokenHint(): ?string;
94
95 /**
96 * Hint to the Authorization Server about the login identifier the End-User might use to log in (if necessary).
97 */
98 public function getLoginHint(): ?string;
99
100 /**
101 * Requested Authentication Context Class Reference values.
102 * Space-separated string that specifies the acr values that the Authorization Server is being requested
103 * to use for processing this Authentication Request.
104 */
105 public function getAcrValues(): ?string;
106
107 public function getCodeChallenge(): ?string;
108
109 public function getCodeChallengeMethod(): ?string;
110
111 public function getRequest(): ?string;
112
113 /**
114 * Add other params and return a new instance.
115 *
116 * @param array<string, mixed> $params
117 */
118 public function withParams(array $params): self;
119
120 /**
121 * Create params ready to use.
122 *
123 * @return array<string, mixed>
124 */
125 public function createParams(): array;
126
127 /**
128 * @return array<string, mixed>
129 */
130 #[Override]
131 public function jsonSerialize(): array;
132 }