Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Minor Clarification Update to Profile Service Docs (#5101)
Browse files Browse the repository at this point in the history
* Update profileservice.rst

Misleading, as going by the [code](https://github.com/IdentityServer/IdentityServer4/blob/7cf6192d0aceb48f8c938e828bf8c4f4c1b0fba3/src/IdentityServer4/src/Services/Default/DefaultClaimsService.cs#L113), access tokens doesn't actually get their claims via Identity Resources. It only gets them via API Resources.

Vice versa as well. Identity tokens doesn't actually get their claims via API Resources. It only gets them via Identity Resources.

* Update profileservice.rst

Removed incorrect description.
  • Loading branch information
deltoss authored Dec 28, 2020
1 parent 07898a6 commit 24feda0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/profileservice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ The scopes requested by the client control what user claims are returned in the
The ``GetProfileDataAsync`` method is responsible for dynamically obtaining those claims based on the ``RequestedClaimTypes`` collection on the ``ProfileDataRequestContext``.

The ``RequestedClaimTypes`` collection is populated based on the user claims defined on the :ref:`resources <refResources>` that model the scopes.
If the scopes requested are an :ref:`identity resources <refIdentityResource>`, then the claims in the ``RequestedClaimTypes`` will be populated based on the user claim types defined in the ``IdentityResource``.
If the scopes requested are an :ref:`API resources <refApiResource>`, then the claims in the ``RequestedClaimTypes`` will be populated based on the user claim types defined in the ``ApiResource`` and/or the ``Scope``.
If requesting an identity token and the scopes requested are an :ref:`identity resources <refIdentityResource>`, then the claims in the ``RequestedClaimTypes`` will be populated based on the user claim types defined in the ``IdentityResource``.
If requesting an access token and the scopes requested are an :ref:`API resources <refApiResource>`, then the claims in the ``RequestedClaimTypes`` will be populated based on the user claim types defined in the ``ApiResource`` and/or the ``Scope``.

IsActiveContext
^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 24feda0

Please sign in to comment.