Skip to content

Export env var (e.g. MAG_ERR) with the kind of error precluding authentication #129

@alejandro-perez

Description

@alejandro-perez

Related to #128

The gss_authenticate_user() an return error 401 for several causes. Mainly:

  • Client hasn't sent any authentication data, giving up
  • Unsupported authentication type (%s) requested by client
  • Failed to create internal context: probably not enough memory
  • GSS mech specific failure

My proposal is to export a variable (MAG_ERROR??) that indicates this cause with some textual constant (e.g. NO_AUTH_DATA, UNSUP_AUTH_TYPE, INTERNAL_ERR, GSS_ERR), to allow web developers to show a little more information to the user about the cause of the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions