forked from baron/baron-sso
Consent 화면 앱 이름 누락 수정
This commit is contained in:
@@ -211,6 +211,7 @@ services:
|
|||||||
hydra create oauth2-client \
|
hydra create oauth2-client \
|
||||||
--endpoint http://hydra:4445 \
|
--endpoint http://hydra:4445 \
|
||||||
--id adminfront \
|
--id adminfront \
|
||||||
|
--name "AdminFront" \
|
||||||
--grant-type authorization_code,refresh_token \
|
--grant-type authorization_code,refresh_token \
|
||||||
--response-type code \
|
--response-type code \
|
||||||
--scope openid,offline_access,profile,email \
|
--scope openid,offline_access,profile,email \
|
||||||
@@ -220,6 +221,7 @@ services:
|
|||||||
hydra create oauth2-client \
|
hydra create oauth2-client \
|
||||||
--endpoint http://hydra:4445 \
|
--endpoint http://hydra:4445 \
|
||||||
--id devfront \
|
--id devfront \
|
||||||
|
--name "DevFront" \
|
||||||
--grant-type authorization_code,refresh_token \
|
--grant-type authorization_code,refresh_token \
|
||||||
--response-type code \
|
--response-type code \
|
||||||
--scope openid,offline_access,profile,email \
|
--scope openid,offline_access,profile,email \
|
||||||
|
|||||||
@@ -282,6 +282,7 @@ services:
|
|||||||
hydra create oauth2-client \
|
hydra create oauth2-client \
|
||||||
--endpoint http://hydra:4445 \
|
--endpoint http://hydra:4445 \
|
||||||
--id adminfront \
|
--id adminfront \
|
||||||
|
--name "AdminFront" \
|
||||||
--grant-type authorization_code,refresh_token \
|
--grant-type authorization_code,refresh_token \
|
||||||
--response-type code \
|
--response-type code \
|
||||||
--scope openid,offline_access,profile,email \
|
--scope openid,offline_access,profile,email \
|
||||||
@@ -291,6 +292,7 @@ services:
|
|||||||
hydra create oauth2-client \
|
hydra create oauth2-client \
|
||||||
--endpoint http://hydra:4445 \
|
--endpoint http://hydra:4445 \
|
||||||
--id devfront \
|
--id devfront \
|
||||||
|
--name "DevFront" \
|
||||||
--grant-type authorization_code,refresh_token \
|
--grant-type authorization_code,refresh_token \
|
||||||
--response-type code \
|
--response-type code \
|
||||||
--scope openid,offline_access,profile,email \
|
--scope openid,offline_access,profile,email \
|
||||||
|
|||||||
@@ -233,10 +233,13 @@ class _ConsentScreenState extends State<ConsentScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildConsentCard(BuildContext context) {
|
Widget _buildConsentCard(BuildContext context) {
|
||||||
final clientName =
|
final clientRawName = _consentInfo?['client']?['client_name'] as String?;
|
||||||
_consentInfo?['client']?['client_name'] ??
|
final clientId = _consentInfo?['client']?['client_id'] as String? ?? '-';
|
||||||
tr('msg.userfront.consent.client_unknown');
|
final clientName = (clientRawName != null && clientRawName.isNotEmpty)
|
||||||
final clientId = _consentInfo?['client']?['client_id'] ?? '-';
|
? clientRawName
|
||||||
|
: (clientId != '-'
|
||||||
|
? clientId
|
||||||
|
: tr('msg.userfront.consent.client_unknown'));
|
||||||
final clientLogo = _consentInfo?['client']?['logo_uri'];
|
final clientLogo = _consentInfo?['client']?['logo_uri'];
|
||||||
final requestedScopes =
|
final requestedScopes =
|
||||||
(_consentInfo?['requested_scope'] as List<dynamic>?)?.cast<String>() ??
|
(_consentInfo?['requested_scope'] as List<dynamic>?)?.cast<String>() ??
|
||||||
|
|||||||
Reference in New Issue
Block a user