Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

ErrorsIT has hardcoded realm #311

Open
bdemers opened this issue Aug 3, 2016 · 3 comments
Open

ErrorsIT has hardcoded realm #311

bdemers opened this issue Aug 3, 2016 · 3 comments

Comments

@bdemers
Copy link
Contributor

bdemers commented Aug 3, 2016

Link to current version of file:

.header("WWW-Authenticate", "Bearer realm=\"My Application\"")

.header("WWW-Authenticate", "Bearer realm=\"My Application\"")
I was testing with an application that was not named the default My Application, and the ErrorsIT failed.

Simple work around: use a different application, or rename an existing one.

@nbarbettini
Copy link
Member

The simple workaround is fine right now (for me at least), but this will be a problem when we get to the point of the TCK testing multiple configurations/applications.

Is the solution to make the TCK read some config or env var that contains the expected name of the application? That would work, but feels icky to me.

@edjiang
Copy link
Contributor

edjiang commented Sep 15, 2016

Or just read the app name from Stormpath

@nbarbettini
Copy link
Member

Or just read the app name from Stormpath

Assuming a dependency on STORMPATH_APPLICATION_HREF?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants