Skip to content

Allow for custom headers to be added to ServerOps #168

Closed
@catmando

Description

@catmando

There are situations (i.e. using TokenAuthentication) where you need to add information to the header of all communications to the server.

We need a hook for this in ServerOps.

See this SO for more info: https://stackoverflow.com/questions/55656784/token-based-authentication-in-hyperstack

To add a custom header redefine the class header method in your Server (or Controller) Op to return a hash of the headers.

      def self.headers # this runs on the client and adds custom headers
        { Authorization: '1234' }
      end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions