Skip to content

Fix for issue #6 - Handle Bearer tokens correctly#7

Merged
twest-bf merged 2 commits intoBishopFox:mainfrom
affix:fix_basic_auth
Jul 15, 2024
Merged

Fix for issue #6 - Handle Bearer tokens correctly#7
twest-bf merged 2 commits intoBishopFox:mainfrom
affix:fix_basic_auth

Conversation

@affix
Copy link
Contributor

@affix affix commented Jul 13, 2024

Card

Details

A fix for issue #6 to handle Bearer token authentication correctly

 » ./sj prepare -l api.json -T https://test.local

INFO[0000] Gathering API details.
                      
INFO[0000] Available authentication mechanisms:         
    - bearer
INFO[0000] A bearer token is accepted. Would you like to provide one? (y/N) 
y
What value would you like to use for the Bearer Token?ABCDEF

Title: API.
curl -sk -X GET 'https://test.local/api?type=test' -H 'Authorization: Bearer ABCDEF'
curl -sk -X POST 'https://test.local/api/settings' -H 'Authorization: Bearer ABCDEF'

Copy link
Collaborator

@twest-bf twest-bf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, updated the version string. Merging.

@twest-bf twest-bf merged commit eef1407 into BishopFox:main Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants