Skip to content

REST Auth token or header etc. #2

@firestalk

Description

@firestalk

Hello

I am trying to make a simple application with weppy and still new to all the stuff with this great framework. One of the features I need is to POST new data from outer source, by curl, for example. And I want to make it available only to authenticated sources.

Is there any solution to send and check some kind of auth key within my data or make api route available only to requests with auth header?

for example, there is a basic auth method in graylog-rest interface

curl -u GM:superpower -H 'Accept: application/json' -X GET 'http://192.168.178.26:9000/api/cluster?pretty=true'

or as in some django projects, by passing auth header

headers = {'Authorization':'ApiKey GM:superpower'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions