How do I send API requests to enterprise.stormpath.io?

By default, Stormpath’s SDKs and integrations point to “https://api.stormpath.com”. If you’re one of our enterprise or private deployment customers, you’ll need to change the base URL to reflect your environment.

For enterprise customers, you’ll need to change the base URL to “https://enterprise.stormpath.io/v1”.

For private deployment customers, you’ll need to change the base URL to “https://your-tenant-name.stormpath.io/v1”.

Below are instructions for changing the base URL in all of our SDKs and integrations. 

Node

client = new stormpath.Client({apiKey: apiKey, baseUrl: “https://enterprise.stormpath.io/v1”});

Express

app.use(stormpath.init(app, {

 baseUrl: “https://enterprise.stormpath.io

 //Optional configuration options
}));

PHP (including Lumen and Laravel)

https://docs.stormpath.com/php/product-guide/latest/configuration.html#base-url 

 Java (including Servlet, Spring WebMVC, Spring Security WebMVC, Sprint Boot WebMVC and Spring Security Spring Boot WebMVC)

  1. Prior to the 1.0.x release: Set environment variable: STORMPATH_BASEURL=https://enterprise.stormpath.io/v1
  2. From the 1.0.x release and beyond: Set environment variable: STORMPATH_CLIENT_BASEURL=https://enterprise.stormpath.io/v1

Also, as spelled out here:

https://github.com/stormpath/stormpath-sdk-spec/blob/master/specifications/config.md#default-configuration, you can include the baseUrl in an application.yml file.

It can also be included in an application.properties file as:

stormpath.client.baseUrl=https://enterprise.stormpath.io/v1

.NET

 
ASP.NET CORE

https://docs.stormpath.com/dotnet/aspnetcore/latest/configuration.html#specifying-the-stormpath-base-url

ASP.NET 4.5+ 

https://docs.stormpath.com/dotnet/aspnet/latest/configuration.html#specifying-the-stormpath-base-url

Python (including Flask and Django)

https://docs.stormpath.com/python/product-guide/latest/configuration.html?highlight=base%20url#base-url

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.