forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch - Authentification A href VS button (wet-boew#2139)
* Update index.json-ld * Update authentication.html * Create signedoffuser-en.html * Create signedoffuser-fr.html * Authentification - Active session pattern adjustment * Authentification - Community disclaimer for the active session example Patch - Authentication - Fix hovering contrast colour when containing a primary styled anchor --------- Co-authored-by: Pierre Dubois <[email protected]> Co-authored-by: Pierre Dubois <[email protected]>
- Loading branch information
1 parent
b4d7d61
commit fd481ea
Showing
10 changed files
with
152 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{%- if page.language == "fr" -%} | ||
<div class="alert alert-info"> | ||
<p>Veuillez noter que la présente page web représente une contribution communautaire et qu'elle <strong>ne bénéficie pas</strong> de la validation ni de l'approbation formelle du Bureau de la transformation numérique comparativement à une conception officielle. Il est à souligner que cette contribution ne va pas à l'encontre d'une version officielle publiée au moment de l'ajout. Si une conception officielle équivalente est élaborée et soit formellement publiée, il est possible que la conception démontrée sur la présente page en diffère en partie ou en totalité.</p> | ||
|
||
<p>Cette conception est <strong>stable</strong> et par conséquent elle bénificie des mêmes avantages que toutes autres fonctionnalités et conceptions stables telles que définies par <a href="https://wet-boew.github.io/wet-boew-documentation/decision/14.html" hreflang="en">l'ébauche de l'API publique de version de GCWeb</a>.</p> | ||
|
||
{%- if page.concerns -%} | ||
<p>Veuillez noter, cet example a soulevé les préoccupations et/ou les commentaires suivants qui devrait être prise en compte:</p> | ||
<ul> | ||
{% for concern in page.concerns %} | ||
<li>{{ concern }}</li> | ||
{% endfor %} | ||
</ul> | ||
{%- endif -%} | ||
{%- if page.discussionUrl -%} | ||
<p><a href="{{ page.discussionUrl }}">Participer à la discussion.</a></p> | ||
{%- endif -%} | ||
</div> | ||
{%- elsif page.language == "en" -%} | ||
<div class="alert alert-info"> | ||
<p>Please note that the current web page represents a community contribution and <strong>does not yet have</strong> formal validation or approval from the Digital Transformation Office compared to an official design. It should be noted that this contribution does not contradict any officially published version at the time of its addition. It is possible that when an equivalent official design is developed and gets formally published, it may differ partially or entirely from the design shown on this page.</p> | ||
|
||
<p>This <strong>stable</strong> design does share the same benefits as any other stable functionalities and design as defined by the <a href="https://wet-boew.github.io/wet-boew-documentation/decision/14.html">GCWeb public versioning API draft</a>.</p> | ||
|
||
{%- if page.concerns -%} | ||
<p>Please note, this example have raised the following concerns/comments for consideration:</p> | ||
<ul> | ||
{% for concern in page.concerns %} | ||
<li>{{ concern }}</li> | ||
{% endfor %} | ||
</ul> | ||
{%- endif -%} | ||
{%- if page.discussionUrl -%} | ||
<p><a href="{{ page.discussionUrl }}">Participate at the discussion</a></p> | ||
{%- endif -%} | ||
</div> | ||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
margin-top: 5px; | ||
} | ||
|
||
a.btn:hover { | ||
a.btn-primary:hover { | ||
background-color: #444; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
{ | ||
"altLangPage": "activeusersession-fr.html", | ||
"breadcrumb": { | ||
"title": "Canada.ca", "link": "https://www.canada.ca/en.html" | ||
}, | ||
"dateModified": "2023-03-28", | ||
"description": "Example of a session user with an active session.", | ||
"language": "en", | ||
"title": "Authentication - User active session", | ||
"auth": { | ||
"type": "active" | ||
}, | ||
"concerns": [ | ||
"Need clarification: Context of use is ambiguous (raised by DTO)", | ||
"Alignment/Consistency: How does it align with how the major authentication services currently do it? (e.g. CRA MyAccount, Service Canada MSCA) (raised by DTO)", | ||
"Alignment/Consistency: Does this align with the direction that TBS OCIO is heading with their Sign in Canada project? (raised by DTO)", | ||
"Alignment/Consistency: Does this impact other authentication patterns? (raised by DTO)", | ||
"Comment: Concern about the use of the power icon on the sign out button - not sure this makes sense for the action (raised by DTO)" | ||
], | ||
"discussionUrl": "https://github.com/wet-boew/GCWeb/pull/2139" | ||
} | ||
--- | ||
<div class="wb-prettify all-pre hide"></div> | ||
|
||
{% include alert-community-stable.html %} | ||
|
||
<h2>Expected output code</h2> | ||
<pre><div class="col-xs-5 col-xs-offset-7 col-md-offset-0 col-md-4"> | ||
<section id="wb-so"> | ||
<h2 class="wb-inv">Sign-on information</h2> | ||
<a class="btn btn-sm btn-default" href="#"><span class="glyphicon glyphicon-user"></span> (User name)</a> | ||
<a class="btn btn-sm btn-primary" href="#"><span class="glyphicon glyphicon-off"></span> Sign out</a> | ||
</section> | ||
</div></code></pre> | ||
|
||
<p>Where <em>(User name)</em> is replaced by the user name of the logged user.</p> | ||
|
||
<h2>GCWeb Jekyll - Front matter example</h2> | ||
<pre><code>"auth": { | ||
"type": "active" | ||
}</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
{ | ||
"altLangPage": "activeusersession-en.html", | ||
"breadcrumb": { | ||
"title": "Canada.ca", "link": "https://www.canada.ca/en.html" | ||
}, | ||
"dateModified": "2023-03-28", | ||
"description": "Exemple d'une session utilisateur active.", | ||
"language": "fr", | ||
"title": "Authentification - Session utilisateur active", | ||
"auth": { | ||
"type": "active" | ||
}, | ||
"concerns": [ | ||
"À clarifier: Le context d'utilisation est ambigu (soulevé par DTO)", | ||
"Alignement et consitance: Comment cela s’aligne-t-il avec la façon dont les principaux services d’authentification le font actuellement? (ex. MonDossier ARC, Service Canada MDSC) (soulevé par DTO)", | ||
"Alignement et consitance: Cela s’aligne-t-il avec la direction que prend le TBS OCIO avec leur projet Sign in Canada? (soulevé par DTO)", | ||
"Alignement et consitance: Cela a-t-il un impact sur d’autres modèles d’authentification? (soulevé par DTO)", | ||
"Commentaire: Préoccupation concernant l’utilisation de l’icône d’alimentation sur le bouton de déconnexion - pas sûr que cela ait du sens pour l’action. (soulevé par DTO)" | ||
], | ||
"discussionUrl": "https://github.com/wet-boew/GCWeb/pull/2139" | ||
} | ||
--- | ||
<div class="wb-prettify all-pre hide"></div> | ||
|
||
{% include alert-community-stable.html %} | ||
|
||
<h2>Code source attendu</h2> | ||
<pre><div class="col-xs-5 col-xs-offset-7 col-md-offset-0 col-md-4"> | ||
<section id="wb-so"> | ||
<h2 class="wb-inv">Information de l'utilisateur actuel</h2> | ||
<a class="btn btn-sm btn-default" href="#"><span class="glyphicon glyphicon-user"></span> (Nom d'utlisateur)</a> | ||
<a class="btn btn-sm btn-primary" href="#"><span class="glyphicon glyphicon-off"></span> Se déconnecter</a> | ||
</section> | ||
</div></code></pre> | ||
|
||
<p>Où <em>(Nom d'utlisateur)</em> est remplacé par le nom d'utilisateur de la personne connecté.</p> | ||
|
||
<h2>Exemple de l'initialisation pour GCWeb Jekyll</h2> | ||
<pre><code>"auth": { | ||
"type": "active" | ||
}</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters