> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Recuperar Informações do Usuário

> Use este endpoint para recuperar as informações do usuário utilizando o padrão OIDC.



## OpenAPI

````yaml pt/openapi/v3-current/AM-auth.yaml get /v1/userinfo
openapi: 3.1.0
info:
  title: Plugin de Autenticação
  description: ''
  version: 2.6.7
servers:
  - url: https://auth.sandbox.lerian.net
security: []
tags:
  - name: API de Autenticação
  - name: API de MFA
  - name: API de Informações do Usuário
  - name: API de Autorização
paths:
  /v1/userinfo:
    get:
      tags:
        - API de Informações do Usuário
      summary: Recuperar Informações do Usuário
      description: >-
        Use este endpoint para recuperar as informações do usuário utilizando o
        padrão OIDC.
      parameters:
        - $ref: '#/components/parameters/Authorization'
      responses:
        '200':
          description: >-
            Indica que o recurso foi criado com sucesso e a operação foi
            concluída conforme esperado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInfo'
              example:
                email: john@example.com
                emailVerified: true
                name: John Doe
                picture: https://example.com/picture.jpg
                preferredUsername: johndoe
                profile: https://example.com/profile
                sub: 019c96a0-5b20-7def-e1f2-9d0e1f2a3b4c
          headers: {}
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              examples:
                Error0009:
                  $ref: '#/components/examples/Error0009'
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              examples:
                Error0006:
                  $ref: '#/components/examples/Error0006'
                Error0007:
                  $ref: '#/components/examples/Error0007'
          headers: {}
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              examples:
                Error0008:
                  $ref: '#/components/examples/Error0008'
          headers: {}
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              examples:
                Error0005:
                  $ref: '#/components/examples/Error0005'
          headers: {}
      security: []
components:
  parameters:
    Authorization:
      name: Authorization
      in: header
      description: O token de autorização no formato 'Bearer <token>'.
      required: true
      schema:
        type: string
  schemas:
    UserInfo:
      description: >-
        Contém detalhes básicos de identidade do usuário autenticado — útil para
        personalização, exibição ou lógica de autorização.
      type: object
      properties:
        email:
          type: string
          description: Endereço de e-mail do usuário.
        emailVerified:
          type: boolean
          description: Indica se o e-mail foi verificado (true se verificado).
        name:
          type: string
          description: Nome completo do usuário.
        picture:
          type: string
          description: URL da imagem de perfil do usuário.
        preferredUsername:
          type: string
          description: O nome que será exibido para o usuário.
        profile:
          type: string
          description: URL para a página de perfil do usuário.
        sub:
          type: string
          description: Identificador único do usuário (claim de sujeito).
    ErrorMessage:
      description: A mensagem de erro da resposta.
      type: object
      properties:
        code:
          type: string
          description: Um identificador único e estável para o erro.
        title:
          type: string
          description: Um breve resumo do problema.
        message:
          type: string
          description: Orientação detalhada para resolver o erro.
  examples:
    Error0009:
      summary: Bad Request
      value:
        code: AUT-0009
        title: Bad Request
        message: >-
          The server could not understand the request due to malformed syntax.
          Please check the listed fields and try again.
    Error0006:
      summary: Token Missing
      value:
        code: AUT-0006
        title: Token Missing
        message: >-
          A valid token must be provided in the request header. Please include a
          token and try again.
    Error0007:
      summary: Invalid Token
      value:
        code: AUT-0007
        title: Invalid Token
        message: >-
          The provided token is expired, invalid or malformed. Please provide a
          valid token and try again.
    Error0008:
      summary: Permission Enforcement Error
      value:
        code: AUT-0008
        title: Permission Enforcement Error
        message: >-
          The enforcer is not configured properly. Please contact your
          administrator if you believe this is an error.
    Error0005:
      summary: Internal Server Error
      value:
        code: AUT-0005
        title: Internal Server Error
        message: >-
          The server encountered an unexpected error. Please try again later or
          contact support.

````