* Authenticate using OIDC
(authContext: AuthContext)
| 147 | * Authenticate using OIDC |
| 148 | */ |
| 149 | override async auth(authContext: AuthContext): Promise<void> { |
| 150 | const { connection, reauthenticating, response } = authContext; |
| 151 | if (response?.speculativeAuthenticate?.done && !reauthenticating) { |
| 152 | return; |
| 153 | } |
| 154 | const credentials = getCredentials(authContext); |
| 155 | if (reauthenticating) { |
| 156 | await this.workflow.reauthenticate(connection, credentials); |
| 157 | } else { |
| 158 | await this.workflow.execute(connection, credentials, response); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Add the speculative auth for the initial handshake. |
nothing calls this directly
no test coverage detected