stormpath

How do I call a service with HTTP Basic using Postman?

瘦欲@ 提交于 2021-02-09 09:49:25
问题 I'm using curl to make a request: curl -u NL91IOC2RWCM31G1ESWYX:SvCuj0tFQjmclZDFQzdMqfrGZ5Qw5jfKM8 \ -H "Accept: application/json" \ https://api.stormpath.com/v1/applications/649j4AnLkUMezhYTl61 How do I make this same request using Postman? 回答1: curl -u key:secret sends a request with HTTP Basic authentication. It's easy to do this in Postman: Enter the endpoint URL in the address field. Switch to the Authorization tab and choose Basic Auth. Enter the key as Username and the secret as

Shiro/Stormpath via REST

梦想的初衷 提交于 2020-02-24 15:59:08
问题 I'm new to Shiro. We are attempting to use Shiro with Stormpath. I've been trying to dissect the examples to come up with a solution to what I want to do, but I'm unsuccessful so far. For now, I'm simply trying to create REST services to do what I want, and I'll tie a real client in later. This is what I'm trying to achieve as my first step: I want to have a client hit a REST endpoint (login) on my server. My server would authenticate, and return a JWT to the client. This JWT would then be

I want to use Stormpath, Express.js, and Node.js. Do I want stormpath-express or express-stormpath?

一世执手 提交于 2020-01-05 02:50:08
问题 I posted an earlier question ("What do I need to know to transfer a working Node project?") after I had a Node project working on a server, and couldn't get it to work at all on my laptop. In the course of drafting another comment, I noticed something funny. The person who probably gave me the most help asked my version numbers for Node and Stormpath, and when I gave them, he said that my version number from my package.json didn't look like a stormpath-express version number. What I found out

Having trouble implementing Stormpath form Login/Authentication alongside REST oAuth authentication in the same application

孤街浪徒 提交于 2020-01-04 04:03:50
问题 We're using stormpath with Java & also trying to combine form Login with REST API authentication on the same application. I've setup stormpath servlet plugin as described here https://docs.stormpath.com/java/servlet-plugin/quickstart.html... This works very fine. Now, on the same application, we have APIs where I've implemented oAuth authentication with stormpath see here http://docs.stormpath.com/guides/api-key-management/ The first request for an access-token works fine by sending Basic

Having trouble implementing Stormpath form Login/Authentication alongside REST oAuth authentication in the same application

廉价感情. 提交于 2020-01-04 04:03:45
问题 We're using stormpath with Java & also trying to combine form Login with REST API authentication on the same application. I've setup stormpath servlet plugin as described here https://docs.stormpath.com/java/servlet-plugin/quickstart.html... This works very fine. Now, on the same application, we have APIs where I've implemented oAuth authentication with stormpath see here http://docs.stormpath.com/guides/api-key-management/ The first request for an access-token works fine by sending Basic

is there a way to get Socially signed in user from Servlet request using Stormpath?

偶尔善良 提交于 2019-12-25 10:00:50
问题 Using stormpath web login, once a User has been authenticated, the currently logged in user Account is available on subsequent requests and can be retrieved by doing the following (e.g from within a Servlet) ; Account account = AccountResolver.INSTANCE.getAccount(request); where request is HttpServletRequest Now, what i need to know is, why is it not possible to do the same thing for a socially signed in user (i.e a user that signs in with google, facebook, linked-in)??? I know that on sign

is there a way to get Socially signed in user from Servlet request using Stormpath?

寵の児 提交于 2019-12-25 10:00:12
问题 Using stormpath web login, once a User has been authenticated, the currently logged in user Account is available on subsequent requests and can be retrieved by doing the following (e.g from within a Servlet) ; Account account = AccountResolver.INSTANCE.getAccount(request); where request is HttpServletRequest Now, what i need to know is, why is it not possible to do the same thing for a socially signed in user (i.e a user that signs in with google, facebook, linked-in)??? I know that on sign

Why am I receiving a cross-origin error when using the react-stormpath LoginForm component?

时光毁灭记忆、已成空白 提交于 2019-12-25 09:26:28
问题 I followed the instructions found in the readme in the stormapth-sdk-react github respository to set up a basic login form. The form displays, but I am immediately greeted by errors in the console: XMLHttpRequest cannot load https://{redacted}.apps.stormpath.io/me. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 403. I get an identical error for the login endpoint.

StormPath Node Express Heroku Error 'apiKey.id is required'

丶灬走出姿态 提交于 2019-12-13 18:04:41
问题 I have an Express/Angular app using Stormpath for authentication. Everything works on my local implementation but when I attempt to push to Heroku it crashes with the error below. Error: "015-10-07T03:40:29.632276+00:00 heroku[web.1]: Starting process with command `npm start` 2015-10-07T03:40:32.269520+00:00 app[web.1]: > cmpe165@1.0.0 start /app 2015-10-07T03:40:32.269497+00:00 app[web.1]: 2015-10-07T03:40:32.269522+00:00 app[web.1]: > node index.js 2015-10-07T03:40:32.269523+00:00 app[web.1

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

為{幸葍}努か 提交于 2019-12-11 06:56:37
问题 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. The response had HTTP status code 401. In my server.js file, I have put the following: var express = require('express'); var stormpath = require('express-stormpath'); var cors = require('cors'); var