|
619 | 619 | "https://my-service.com/oauth2/auth" |
620 | 620 | ] |
621 | 621 | }, |
| 622 | + "device_authorization_url": { |
| 623 | + "type": "string", |
| 624 | + "description": "Overwrites the OAuth2 Device Auth URL", |
| 625 | + "format": "uri-reference", |
| 626 | + "examples": [ |
| 627 | + "https://my-service.com/oauth2/device/auth" |
| 628 | + ] |
| 629 | + }, |
622 | 630 | "client_registration_url": { |
623 | 631 | "description": "Sets the OpenID Connect Dynamic Client Registration Endpoint", |
624 | 632 | "type": "string", |
|
645 | 653 | }, |
646 | 654 | "userinfo_url": { |
647 | 655 | "type": "string", |
648 | | - "description": "A URL of the userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint `/.well-known/openid-configuration`. Defaults to Ory Hydra's userinfo endpoint at `/userinfo`. Set this value if you want to handle this endpoint yourself.", |
| 656 | + "description": "A URL of the userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself.", |
649 | 657 | "format": "uri-reference", |
650 | 658 | "examples": [ |
651 | 659 | "https://example.org/my-custom-userinfo-endpoint" |
652 | 660 | ] |
653 | | - }, |
654 | | - "device_authorization_url": { |
655 | | - "type": "string", |
656 | | - "description": "A URL of the device authorization endpoint to be advertised at the OpenID Connect Discovery endpoint `/.well-known/openid-configuration`. Defaults to Ory Hydra's device authorization endpoint at `/oauth2/device/auth`. Set this value if you want to handle this endpoint yourself.", |
657 | | - "format": "uri-reference", |
658 | | - "examples": [ |
659 | | - "https://example.org/oauth2/device/auth" |
660 | | - ] |
661 | 661 | } |
662 | 662 | } |
663 | 663 | } |
|
816 | 816 | "/ui/logout" |
817 | 817 | ] |
818 | 818 | }, |
819 | | - "device_verification": { |
820 | | - "type": "string", |
821 | | - "description": "Sets the device user code verification endpoint. Defaults to an internal fallback URL showing an error.", |
822 | | - "format": "uri-reference", |
823 | | - "examples": [ |
824 | | - "https://my-logout.app/device_verification", |
825 | | - "/ui/device_verification" |
826 | | - ] |
827 | | - }, |
828 | | - "device_verification_success": { |
829 | | - "type": "string", |
830 | | - "description": "Sets the post device authentication endpoint. Defaults to an internal fallback URL showing an error.", |
831 | | - "format": "uri-reference", |
832 | | - "examples": [ |
833 | | - "https://my-logout.app/device_done", |
834 | | - "/ui/device_done" |
835 | | - ] |
| 819 | + "device": { |
| 820 | + "type": "object", |
| 821 | + "description": "Configure URLs for the OAuth 2.0 Device Code Flow.", |
| 822 | + "properties": { |
| 823 | + "verification": { |
| 824 | + "type": "string", |
| 825 | + "description": "Sets the device user code verification endpoint. Defaults to an internal fallback URL showing an error.", |
| 826 | + "format": "uri-reference", |
| 827 | + "examples": [ |
| 828 | + "https://my-logout.app/device_verification", |
| 829 | + "/ui/device_verification" |
| 830 | + ] |
| 831 | + }, |
| 832 | + "success": { |
| 833 | + "type": "string", |
| 834 | + "description": "Sets the post device authentication endpoint. Defaults to an internal fallback URL showing an error.", |
| 835 | + "format": "uri-reference", |
| 836 | + "examples": [ |
| 837 | + "https://my-logout.app/device_done", |
| 838 | + "/ui/device_done" |
| 839 | + ] |
| 840 | + } |
| 841 | + } |
836 | 842 | }, |
837 | 843 | "error": { |
838 | 844 | "type": "string", |
|
980 | 986 | ] |
981 | 987 | }, |
982 | 988 | "device_user_code": { |
983 | | - "description": "Configures how long device and user codes are valid.", |
984 | | - "default": "15m", |
| 989 | + "description": "Configures how long device & user codes are valid.", |
| 990 | + "default": "10m", |
985 | 991 | "allOf": [ |
986 | 992 | { |
987 | 993 | "$ref": "#/definitions/duration" |
|
1104 | 1110 | } |
1105 | 1111 | } |
1106 | 1112 | }, |
1107 | | - "device_authorization": { |
1108 | | - "token_polling_interval": { |
1109 | | - "description": "Sets the starting token polling interval.", |
1110 | | - "default": "5s", |
1111 | | - "allOf": [ |
1112 | | - { |
1113 | | - "$ref": "#/definitions/duration" |
1114 | | - } |
1115 | | - ] |
1116 | | - }, |
1117 | | - "user_code_entropy": { |
1118 | | - "type": "string", |
1119 | | - "description": "Sets the entropy for the user codes.", |
1120 | | - "default": "medium", |
1121 | | - "enum": ["high", "medium", "low"] |
1122 | | - } |
1123 | | - }, |
1124 | 1113 | "grant": { |
1125 | 1114 | "type": "object", |
1126 | 1115 | "additionalProperties": false, |
|
1181 | 1170 | } |
1182 | 1171 | ] |
1183 | 1172 | }, |
| 1173 | + "device_authorization": { |
| 1174 | + "type": "object", |
| 1175 | + "additionalProperties": false, |
| 1176 | + "properties": { |
| 1177 | + "token_polling_interval": { |
| 1178 | + "allOf": [ |
| 1179 | + { |
| 1180 | + "$ref": "#/definitions/duration" |
| 1181 | + } |
| 1182 | + ], |
| 1183 | + "default": "5s", |
| 1184 | + "description": "configure how often a non-interactive device should poll the device token endpoint", |
| 1185 | + "examples": ["5s", "15s", "1m"] |
| 1186 | + }, |
| 1187 | + "user_code_entropy": { |
| 1188 | + "type": "string", |
| 1189 | + "description": "Sets the entropy for the user codes.", |
| 1190 | + "default": "medium", |
| 1191 | + "enum": ["high", "medium", "low"] |
| 1192 | + } |
| 1193 | + } |
| 1194 | + }, |
1184 | 1195 | "token_hook": { |
1185 | 1196 | "description": "Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims.", |
1186 | 1197 | "examples": ["https://my-example.app/token-hook"], |
|
1194 | 1205 | } |
1195 | 1206 | ] |
1196 | 1207 | } |
1197 | | - } |
1198 | | - }, |
| 1208 | + } |
| 1209 | + }, |
1199 | 1210 | "secrets": { |
1200 | 1211 | "type": "object", |
1201 | 1212 | "additionalProperties": false, |
|
1240 | 1251 | "examples": ["cpu"] |
1241 | 1252 | }, |
1242 | 1253 | "tracing": { |
1243 | | - "$ref": "https://raw.githubusercontent.com/ory/x/v0.0.675/otelx/config.schema.json" |
| 1254 | + "$ref": "ory://tracing-config" |
1244 | 1255 | }, |
1245 | 1256 | "sqa": { |
1246 | 1257 | "type": "object", |
|
0 commit comments