diff --git a/model/lib/model.dart b/model/lib/model.dart index bac4d51aa..98360ed61 100644 --- a/model/lib/model.dart +++ b/model/lib/model.dart @@ -67,6 +67,7 @@ export 'oidc/oidc_configuration.dart'; export 'oidc/request/oidc_request.dart'; export 'oidc/response/oidc_link_dto.dart'; // OIDC +export 'oidc/response/oidc_discovery_response.dart'; export 'oidc/response/oidc_response.dart'; export 'oidc/token.dart'; export 'oidc/token_id.dart'; diff --git a/model/lib/oidc/response/oidc_discovery_response.dart b/model/lib/oidc/response/oidc_discovery_response.dart new file mode 100644 index 000000000..9553f3a05 --- /dev/null +++ b/model/lib/oidc/response/oidc_discovery_response.dart @@ -0,0 +1,21 @@ +import 'package:equatable/equatable.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'oidc_discovery_response.g.dart'; + +@JsonSerializable(explicitToJson: true, includeIfNull: false) +class OIDCDiscoveryResponse with EquatableMixin { + + final String? authorizationEndpoint; + final String? tokenEndpoint; + final String? endSessionEndpoint; + + OIDCDiscoveryResponse(this.authorizationEndpoint, this.tokenEndpoint, this.endSessionEndpoint); + + factory OIDCDiscoveryResponse.fromJson(Map json) => _$OIDCDiscoveryResponseFromJson(json); + + Map toJson() => _$OIDCDiscoveryResponseToJson(this); + + @override + List get props => [authorizationEndpoint, tokenEndpoint, endSessionEndpoint]; +} \ No newline at end of file