Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Does not pull from global auth config when strategy has a custom name #1

Closed
ekryski opened this issue Nov 21, 2016 · 1 comment
Closed

Comments

@ekryski
Copy link
Member

ekryski commented Nov 21, 2016

See this line.

Steps to reproduce

// in config
{
  "auth": {
    "secret": "TpJUzOHgY5D2PHV9RSmLJT4x/IH2RAWtHkGPgDlSXY/xXwOrSZGx2xy9CupED0+dFsbIaA3wfwYaBVyqoLm6uQ==",
    "local-device": {
      "usernameField": "clientId",
      "passwordField": "clientSecret",
      "entity": "device",
      "service": "devices"
    }
  }
}
// in code
app.configure(authentication(app.get('auth')))
    .configure(local())
    .configure(local({ name: 'local-device' }))

local-device doesn't pull from the main auth config.

Expected behavior

Should be able to put custom local strategy options in the auth config.

Actual behavior

Instead it uses the default config.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): 0.2.0

@ekryski
Copy link
Member Author

ekryski commented Nov 21, 2016

See how it is done in the OAuth2 plugin. Should probably just be the same.

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

1 participant