Skip to content

Latest commit

 

History

History
90 lines (47 loc) · 3.42 KB

index.md

File metadata and controls

90 lines (47 loc) · 3.42 KB

Authorization and authentication in {{ yandex-cloud }}

When a user does something with a resource in {{ yandex-cloud }}, IAM checks whether the user has the access rights required to perform this operation.

Users get permissions along with resource roles. For more information about how roles are assigned and how the list of permissions is checked, see {#T}.

Authentication in {{ yandex-cloud }} {#authentication}

Before authorization, a user must get authenticated, i.e., they must log in using their account. Authentication is performed in different ways depending on the type of account and the interface used:

Authentication using a Yandex account {#passport}

{% list tabs group=instructions %}

  • Management console {#console}

    When logging in to your Yandex or Yandex 360 account, you will be authenticated automatically.

  • CLI {#cli}

    To perform operations in the CLI, authenticate by following this guide. After this, authentication will work automatically.

  • API {#api}

    {% include owner-warning %}

    To perform operations in the API:

    1. Get an IAM token in exchange for your OAuth token.

    2. {% include iam-token-usage %}

      {% include iam-token-lifetime %}

{% endlist %}

Service account authentication {#sa}

{% list tabs group=instructions %}

{% endlist %}

Federated user authentication {#saml-federation}

{% list tabs group=instructions %}

  • Management console {#console}

    {% include federated-user-auth %}

    The authentication process for a federated user depends on the IdP server settings. For more information, see {#T}.

  • CLI {#cli}

    To perform operations in the CLI, authenticate by following this guide.

    {% include include %}

{% endlist %}

See also {#see-also}

{#T}