TF-571 Check OIDC is available
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:model/oidc/converter/uri_converter.dart';
|
||||
|
||||
part 'oidc_link_dto.g.dart';
|
||||
|
||||
@UriConverter()
|
||||
@JsonSerializable()
|
||||
class OIDCLinkDto with EquatableMixin {
|
||||
|
||||
final Uri rel;
|
||||
final Uri href;
|
||||
|
||||
OIDCLinkDto(this.rel, this.href);
|
||||
|
||||
factory OIDCLinkDto.fromJson(Map<String, dynamic> json) => _$OIDCLinkDtoFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$OIDCLinkDtoToJson(this);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [rel, href];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:model/oidc/converter/uri_converter.dart';
|
||||
import 'package:model/oidc/response/oidc_link_dto.dart';
|
||||
|
||||
part 'oidc_response.g.dart';
|
||||
|
||||
@UriConverter()
|
||||
@JsonSerializable()
|
||||
class OIDCResponse with EquatableMixin {
|
||||
|
||||
final String subject;
|
||||
final List<OIDCLinkDto> links;
|
||||
|
||||
OIDCResponse(this.subject, this.links);
|
||||
|
||||
factory OIDCResponse.fromJson(Map<String, dynamic> json) => _$OIDCResponseFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$OIDCResponseToJson(this);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [subject, links];
|
||||
}
|
||||
Reference in New Issue
Block a user