Questions tagged [express-stormpath]
38 questions
4
votes
2 answers
apiKey key ID and secret is required even though they're there in express-stormpath
I'm trying to use express-stormpath on my Heroku app. I'm following the docs here, and my code is super simple:
var express = require('express');
var app = express();
var stormpath = require('express-stormpath');
app.use(stormpath.init(app, {
…

arete
- 711
- 6
- 8
4
votes
1 answer
Create Stormpath user and assign to group in one call
I'd like to submit the user creation request with the group but not sure how to do that in express-stormpath.
Right now I use the pre- and post-registration handlers to get a field, delete it from formData, pass to res, then set the group on the…

Omar Mir
- 1,500
- 1
- 19
- 39
3
votes
1 answer
Post-email-verification hook
In express-stormpath, what's the best way to run some code after a successful email verification?
postRegistrationHandler comes close, but it gets called before email verification.

ryan
- 113
- 6
3
votes
1 answer
'apiKey.id is required' error thrown when using express-stormpath with node.js
I am using express-stormpath with node.js to set up a backend server. This is a snippet of my server.js code where I get an error thrown -
app.use(stormpath.init(app, {
apiKeyFile: './config/.stormpath/apikey.properties',
application:…

user1246197
- 75
- 7
2
votes
1 answer
How do I create different registration pages for groups in express-stormpath
I am looking to create different registration pages for different groups in express-stormpath. For example:
router.get('/new', stormpath.groupsRequired(['Merchants']), function(req, res){
//this would render a signup for merchants if a merchant…

user7428822
- 21
- 1
2
votes
2 answers
How do I log out of Stormpath ID Site with express-stormpath and stormpath-sdk-angularjs?
I have an express-stormpath application that uses Stormpath ID Site. It has this configuration:
app.use(stormpath.init(app, {
web: {
idSite: {
enabled: true,
uri: '/idSiteResult',
nextUri: '/'
},
login: {
…

ryan
- 113
- 6
2
votes
2 answers
Custom data search within an array
Is it possible to search an account's custom data to find a value contained in an array?
Something like:
?customData.[arrayName].{key}=value
The Stormpath docs don't mention array searching.

conradj
- 2,481
- 2
- 24
- 30
2
votes
1 answer
Social login on registration page for Stormpath
I really hope this is my last question on the Stormpath API for a while. Making the switch from C# and PHP to node has been somewhat challenging.
I am trying to implement social login on the registration page. The pre-built option places it on the…

Omar Mir
- 1,500
- 1
- 19
- 39
2
votes
1 answer
Token is Invalid or Invalid state token provided
So i'm running into a problem I suspect I shouldn't be having and having tried several things i'm seemingly at an impasse.
I am trying to integrate LinkedIn login with Stormpath and it seems the accounts get created and technically the user is…

Omar Mir
- 1,500
- 1
- 19
- 39
2
votes
1 answer
Can I show user data to other users in Stormpath?
I'm trying to integrate Stormpath to an iOS app (Swift), and would like to be able to show one user's data to another user.
In other words, can I show 1 user another user's information by searching my userlist for certain factors (such as age or…

Giveny
- 69
- 10
2
votes
1 answer
How to create stormpath user without password?
Some users of our application are admins. We want give them a capability to create new users. We think about the following flow:
Admin goes to "Users" page and clicks a "create a new user" button and fill new user's name and email address.
That new…

user2643246
- 143
- 1
- 3
2
votes
1 answer
Node + Stormpath + Express : Can't set headers after they are sent
I am new to node and using stormpath for custom data, my server code retrieves the accounts in a group with the custom data for each. It should send data to client.. However I am getting error.. Any kind of help will be helpful, thanks.
Error :…

Kshitiz Sharma
- 66
- 8
2
votes
1 answer
Bypass stormpath when in development
I am trying Stormpath via express-stormpath. I have very poor network connection so every time when the node app restarts, the page takes long time to response. It seems that the express-stormpath is doing something at background. The problem…

xtu
- 417
- 3
- 12
2
votes
1 answer
express-stormpath not recognizing environment variables to initialize on Heroku
i have a simple web server, trying to use the npm-package 'express-stormpath' for basic user registration.
everything works fine locally - but consistently getting this error when i deploy to Heroku:
Error: apiKey.id is required.
…

adamdiy
- 43
- 5
2
votes
2 answers
Heroku Node Express Stormpath 'API key ID and secret is required'
I have been following the Heroku Stormpath docs to setup a simple Express app. The code from my server.js file is shown below:
'use strict';
var express = require('express');
var pg = require('pg');
var stormpath = require('express-stormpath');
var…

jdev03
- 21
- 2