Questions tagged [stormpath]

1

votes
1

answer
134

Views

Stormpath cURL Error

I am trying to follow this example: http://docs.stormpath.com/rest/quickstart/ One of the steps mentions to do the following cURL request: curl -X POST --user $YOUR_API_KEY_ID:$YOUR_API_KEY_SECRET \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ 'name' : 'My Awesome Appl...
G.One
1

votes
1

answer
538

Views

stormpath error If you do not specify a \'requestAuthenticator\' field, y

I'm getting the error specified above when trying to build a express-stormpath app. I'll list the applicable code: Error: If you do not specify a 'requestAuthenticator' field, you must specify an ApiKey. at Object.getAuthenticator (d:\dev\git-repos\bps\VolumeGridDataEntry\node_modules\express- st...
Will Lopez
1

votes
1

answer
191

Views

Stormpath API blocks user on attempt of login once or verify repeatedly(on refresh)?

I am using stormpath's API to stores user details who are accessing the application(Backbone/require.js project).I integrated the REST API(running on Jetty Server) to stormapth's API to valid user credential.On validating user credential(once or repeatedly).It seems that stormpath does not respone f...
Amit Sah
1

votes
3

answer
111

Views

How to do authorization for mobile cloud app in IBM Bluemix

There are multiple tutorials about authentication in Bluemix, but I yet to find a good tutorial about authorization. In my mobile app, I need to group users and only users with a group get to see the messages allowed to this group. Is there a service can help to implement this? Someone mentioned Sto...
Zheng Xie
1

votes
1

answer
156

Views

Customizing Stormpath account activation workflow

Strompath default registration workflow supports email verification, we would like to perform SMS OTP verification as our primary business case is targeted at mobile users, would like to know if the below technical flow is possible with it's API. Is this a efficient way to handle this scenario, as t...
Somasundaram Sekar
1

votes
1

answer
127

Views

express-stormpath login not working for email-authenticated users

i have a basic node.js / Express server using express-stormpath for user authentication. everything works beautifully without email verification. obviously, email verification is desirable for many reasons, but my email-verified users are unable to use the standard login flow for restricted routes....
adamdiy
1

votes
1

answer
921

Views

401 Unauthorized when calling Stormpath REST API with WebRequest object?

I am using Stormpath for my authentication service. I call the RestAPI of Stormpath by using HttpWebRequest. I am also using HttpWebRequest to call the RestAPI but it does not work. private void BtnGetResetApiClick(object sender, EventArgs e) { var username = 'aaaa'; var password = 'bbbb'; ServicePo...
Nguyen Tu Pham
1

votes
5

answer
114

Views

Angular Stormpath Injection Unknown Providor

I'm trying to use the angular ui router with storm path for angular, but I keep getting an unknown provider error. My code is as follows, var angular = require('angular'); // app.js var app = angular.module('app', [require('angular-ui-router'), require('stormpath-sdk-angularjs')]); app.config(functi...
1

votes
1

answer
73

Views

Is it possible to disable cache for stormpath in python?

I'm using the RedisStore as a cache store for stormpath. The problem with the default MemoryStore is that it doesn't work properly for multiple webservers behind the load-balancer. Now what I'd like to do is to disable caching completely if the redis server is down. How do I disable the caching for...
Ikar Pohorský
1

votes
1

answer
74

Views

Node.Js authentication using Stormpath

var auth = { username: 'user', password: 'password' }; application.authenticateAccount(auth, function(err, result) { result.getAccount(function(err, account) { console.log('Account:', account); }); }; I am getting an error TypeError : Cannot read property 'getAccount' of undefined
Droidr
1

votes
2

answer
49

Views

Heroku Stormpath Unresponsive Registration Page

I have followed the heroku guide here to configure stormpath authentication using express.js on my angular site. I am successfully able to navigate to the /login and /register pages at the root of my site. However when I try to register I always end up with no created user and my page looking like t...
Tyler Fitz
1

votes
1

answer
77

Views

Logging in with Facebook using Flask-Stormpath on PythonAnywhere raises JSONDecodeError

I am trying to deploy my application on PythonAnywhere but I am unable to set up the Flask-Stormpath Facebook login. The email based login and Google connect are working fine, but Facebook login is not working. I have updated the Facebook app to the correct application url and verified that Faceboo...
Mrinal Ahlawat
1

votes
1

answer
98

Views

How to implement “login as” admin function with `stormpath-flask`

I'm implementing a 'login as' feature for our admin dashboard. Basically I'd love to allow our admins to see and use the website as if she has logged in as a specific customer. For example, if Trish rang us up and asked a question, our admin should be able to login as Trish and see exactly what Tris...
Alex Dong
1

votes
1

answer
167

Views

Stormpath React SPA user login

I'm developing a React app using webpack and intend to serve my app using nginx. Reading through the Stormpath examples I'm confused if I can develop a client side SPA since all the examples I've found use express to serve the application. I think it might be possible to keep my app running using th...
1

votes
1

answer
407

Views

Cannot find module 'express-stormpath' when starting server

When I try to run node server.js (in normal terminal without being a superuser or root) I get this error: [email protected]:~/my-webapp$ node server.js module.js:442 throw err; ^ Error: Cannot find module 'express-stormpath' at Function.Module._resolveFilename (module.js:440:15) at Function.Mo...
AlphaUnlimitedG
1

votes
2

answer
92

Views

Is there a simple 'is_authenticated' solution in Stormpath?

I found this in the Stormpath docs: is_authenticated() (http://flask-stormpath.readthedocs.io/en/latest/api.html) All users will always be authenticated, so this will always return True. So is_authenticated does not seem to work as it does in flask-login. Do I have to do a workaround or is there a...
Yhun
1

votes
1

answer
105

Views

Perform a log-out using stormpath $http

I am trying to revoke oauth2 tokens using the stormpath API. Server-side authentication is performed using stormpath + express. Here is my request. function revokeOauthTokens(params) { // Revoke the oauth2 access. and refresh tokens var oauthLogoutReq = { method: 'POST', url: params.apiBaseUrl +...
Wakahiu Njenga
1

votes
1

answer
108

Views

How to query a user account while not logged in Stormpath/Express app?

Using Express 4 and Stormpath, I want to make public some of the user's account information. Users need not be logged in to view other users' information. They just know the other user's username. Example: http://localhost:3000/user/jsmith Will display in the view 'user' Username:jsmith FirstName: J...
Rob McCormack
1

votes
4

answer
2.2k

Views

xCode - Error/Crash when dismissing keyboard

I'm having an issue with my xCode project, for unknown reason it started crashing when dismissing or hiding the keyboard once you have finished typing. This didn't happen before the new xCode 8 update, Im hoping someone could help me here. This is the error code 2016-10-07 10:30:13.658061 Stormpath...
Sebbie
1

votes
1

answer
750

Views

Missing @ConditionalBean on StormpathWebMvcAutoConfiguration.stormpathApplicationResolver

While trying to add Stormpath to my existing Spring-Boot application, I have the following error on startup. java.lang.IllegalStateException: Error processing condition on com.stormpath.spring.boot.autoconfigure.StormpathWebMvcAutoConfiguration.stormpathApplicationResolver ... Caused by: java.la...
Francois Mottard
1

votes
1

answer
22

Views

Stormpath (python) - get provider data

I'm using stormpath-sdk-python with social authentication. After my user login - the api return the account information with provider_data attribute. But this is useless since its not accessible. How can I access the provider data of the user? I've been search a lot in the docs - but nothing.
RonZ
1

votes
2

answer
58

Views

Laravel Stormpath not able to access User Object

I am using Laravel and Stormpath for User Management. I am able to register and login user successfully using AJAX. After successful login only the url is returned to AJAX, but after login when I go to User specific pages I am not able to fetch User Data. Registration and Login happens in RegisterC...
linktoahref
1

votes
1

answer
51

Views

Heroku pipelines with react stormpath

I created app with react and express (client-side rendering). I use react-stormpath. When I added https://my-app-name.herokuapp.com into Authorized Origin URIs in Stormpath Admin it works ok. But when I created pipeline with review apps, it created new subdomain with every request e.g. https://my-ap...
Adam Ryvola
1

votes
2

answer
147

Views

using shiro with stormpath for jax-rs rbac

I'm attempting to adapt this excellent stormpath post by Brian Demers - https://stormpath.com/blog/protecting-jax-rs-resources-rbac-apache-shiro - to my own purposes and so far it works pretty well - except that now I want to add stormpath for user/role management rather then having the users in a...
Joe Murray
1

votes
1

answer
64

Views

Laravel Stormpath Social Login Error

I am using Laravel 5.1 and Stormpath for User management. I followed this documentation to implement google login Configuring Your Social Provider = DONE I created project in Google Console and in “Authorized redirect URIs” I've added https://{DNS-LABEL}.apps.stormpath.io/authorize/callback Cr...
linktoahref
1

votes
1

answer
699

Views

Sending url encoded string in POST request using node.js

Good afternoon, I am having difficulty sending a url encoded string to the Stormpath /oauth/token API endpoint. The string is meant to look like this: grant_type=password&username=&password= Using Postman I was successful in hitting the endpoint and retrieving the data I want by providing a string s...
m00saca
1

votes
1

answer
44

Views

express-stormpath w/ react-stormpath: this.context.user doesn't reflect groups the user has recently been added to

Using the express and react Stormpath libraries, I have a fairly unique use-case: Upon a successful Sign Up the user is automatically logged-in and asked a few questions. Depending on the answers the user gives, the user is then programatically added to specific Stormpath Groups. After this question...
connected_user
1

votes
2

answer
359

Views

How to get custom User data in Stormpath with expressJS?

Hi I want to get a custom JSON file from the stormpath API in a normal JS function instead of within a view. The view method is like this: var stormpath = require('express-stormpath'); app.get('/email', stormpath.loginRequired, function(req, res) { res.send('Your email address is:', res.locals.user)...
user61026
1

votes
2

answer
517

Views

Shiro + Stormpath get current user in servlet

I have just started to use Apache Shiro and Stormpath. In the jsp's everything is working fine and as expected. But how can I get the current user data and his custom fields within a servlet? @WebServlet('/test') public class Foo extends HttpServlet { @Override protected void doGet(HttpServletReques...
KIC
1

votes
1

answer
364

Views

How to authenticate REST API with Stormpath Facebook integration

I am designing a simple REST API with Stormpath Facebook integration and wondering what would be the best pattern for user authentication. Currently I do not have any endpoint for user creation, so all requests to my endpoints are authenticated like this: Get Stormpath Application object based on AP...
mkorszun
1

votes
1

answer
112

Views

Stormpath login fails on /me in safari due to access token

I use stormpath to login using an angular webapp with an node/express server. This all work well on most modern browser, except Safari. It seems to be something with access token cookies. Not sure if this is a bug however. When I login (with username and pass) my POST request goes well and looks li...
EJay
1

votes
3

answer
215

Views

Can't add custom field from registration form in AngularJS + Stormpath

I want to add a custom field during new user registration but it shows an error message: is not a configured registration field. But documentation on page https://docs.stormpath.com/angularjs/sdk/#/api/stormpath.spRegistrationForm:spRegistrationForm states: Any form fields you supply that are not on...
user2643246
1

votes
2

answer
60

Views

Express Static for Authenticated Users

How can I enable static directories just for a user's session in express? Using some HTML files as an examples, I know I can serve a directory called private via the call below app.use('/private', express.static(appDir + '/private')); What I would like to do is just enable the static resource once a...
jotamon
1

votes
1

answer
105

Views

Stormpath Spring Boot

I cloned the official Stormpath Spring Boot tutorial git repo, generated and saved my key pair at ~/.stormpath/apiKey.properties, built the project (mvn clean package), and ran it (java -jar target/*.jar). The tutorial web app demonstrates a webpage with three tabs (Home, Dashboard, Login) that show...
Wesam
1

votes
1

answer
244

Views

401 Error with post request Stormpath Express + React + Node + Gulp

When attempting to login any user, the following POST error results: XMLHttpRequest cannot load https://api.stormpath.com/v1/applications/[APP_HREF]/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. T...
kkers
1

votes
1

answer
53

Views

Can't access customData in view for non-logged in user - Express.js Stormpath

Following this tutorial: https://stormpath.com/blog/build-nodejs-express-stormpath-app I can easily access and display in view profile.jade, customData for logged in user , from profile.js with username: req.user.username, city: req.user.customData.city, Filename: profile.jade h1 This is surname #{...
Rob McCormack
1

votes
1

answer
21

Views

Any issues with adding a match all route that grabs the user on every request?

Interested in grabbing the user on every request so that I can have funtionality even on pages that don't have any stormpath functionality middleware. Any issues with this? If user is logged in it returns the user in the request object, if the user is not logged in, it returns undefined. which is...
mutant_city
1

votes
1

answer
79

Views

API authentication through OAuth2 for “unregistered” users on a web/mobile app

I'd like to implement authentication for unregistered users as well as registered users. As soon as user downloads the mobile app, I'd like them to start using certain parts of the app but still make requests with an access token. My plans was to register user with their UUID in the background and r...
user3211198
1

votes
1

answer
39

Views

stompath - is it possible to migrate a user account from one directory to another

I've created a bunch of users in one directory (directory_A). now, I'm going to switch to another directory(directory_B). How can migrate all users from directory_A to directory_B without knowing their passwords. I saw this script https://github.com/stormpath/stormpath-migrate/blob/master/migrate/...
WebQube
1

votes
1

answer
42

Views

Stormpath not pulling in JSON markup configuration file

According to Stormpath's C# documentation (asp.net specifically), all one would need to do is place stormpath.json into the same directory as Web.config. However, this is not pulling in any of my configurations. Here is where I have the file placed: And here is an example configuration that I have:...
Jared Lovin

View additional questions