Skip to content

Idea/Discussion: Extend Request-Class for Basic and Bearer-Auth #20

@xJuvi

Description

@xJuvi

I use some authentication-szenarios with basic oder bearer (jwt) authentication.

It would be nice if we can include this into the Request.php file.

My suggestion are the following methods:

  • getBasic (returns the basic auth value)
  • getBearer (returns the bearer auth value)
  • getAuthScheme (return if request is basic or bearer auth is used)
  • getAuthValue (Checks if authentication is basic or bearer and return the auth value)

This issue is to discus my needs. If you think we can implement this, i can create a PR for implementation.

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions