Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized #146

simon-p-r opened this issue Mar 17, 2017 · 1 comment


Copy link

@simon-p-r simon-p-r commented Mar 17, 2017

When using unauthorized with negotiate scheme I cannot send back the token in the header, I want to return the header like this

WWW-Authenticate: Negotiate <base 64 encoded string>

I use boom like this, token variable being the base64 encoded string

                        return reply(Boom.unauthorized(null, 'Negotiate', token));

However I then get this in http response

'www-authenticate': 'Negotiate 0="o", 1="R", 2="U", 3="w", 4="E", 5="6", 6="A"
, 7="D", 8="C", 9="g", 10="E", 11="D", 12="o", 13="Q", 14="w", 15="G", 16="C", 1
7="i", 18="s", 19="G", 20="A", 21="Q", 22="Q", 23="B", 24="g", 25="j", 26="c", 2
7="C", 28="A", 29="g", 30="o", 31="="',

I could work on a PR if you want to allow the ability to send just one string against the scheme.


This comment has been minimized.

Copy link

@hueniverse hueniverse commented Mar 20, 2017

This format is not supported. The third argument is expected to be an object. A PR would be fine, as long as it is super simple and clean.

@hueniverse hueniverse added the request label Mar 20, 2017
hueniverse added a commit that referenced this issue Mar 21, 2017
* allow different param for attributes

* improved docs and fixed attributes property

* changed if block
@hueniverse hueniverse added this to the 4.3.0 milestone Mar 21, 2017
@hueniverse hueniverse closed this Mar 21, 2017
@hueniverse hueniverse added feature and removed request labels Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.