mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
e22689c125
* cleanup todo * pass id token details to oidc * feat(oidc): id token for device authorization This changes updates to the newest oidc version, so the Device Authorization grant can return ID tokens when the scope `openid` is set. There is also some refactoring done, so that the eventstore can be queried directly when polling for state. The projection is cleaned up to a minimum with only data required for the login UI. * try to be explicit wit hthe timezone to fix github * pin oidc v3.8.0 * remove TBD entry
29 lines
904 B
Go
29 lines
904 B
Go
// Code generated by "stringer -type=DeviceAuthState -linecomment"; DO NOT EDIT.
|
|
|
|
package domain
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[DeviceAuthStateUndefined-0]
|
|
_ = x[DeviceAuthStateInitiated-1]
|
|
_ = x[DeviceAuthStateApproved-2]
|
|
_ = x[DeviceAuthStateDenied-3]
|
|
_ = x[DeviceAuthStateExpired-4]
|
|
_ = x[deviceAuthStateCount-5]
|
|
}
|
|
|
|
const _DeviceAuthState_name = "undefinedinitiatedapproveddeniedexpiredinvalid"
|
|
|
|
var _DeviceAuthState_index = [...]uint8{0, 9, 18, 26, 32, 39, 46}
|
|
|
|
func (i DeviceAuthState) String() string {
|
|
if i >= DeviceAuthState(len(_DeviceAuthState_index)-1) {
|
|
return "DeviceAuthState(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _DeviceAuthState_name[_DeviceAuthState_index[i]:_DeviceAuthState_index[i+1]]
|
|
}
|