# appid-spring-boot-starter **Repository Path**: mirrors_ibm/appid-spring-boot-starter ## Basic Information - **Project Name**: appid-spring-boot-starter - **Description**: App ID Spring Boot starter to make it easy for spring boot developers to easily integrate App ID in their spring boot applications - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # App ID Spring Boot Starter This is a spring boot starter that enables Spring boot developers to get started quickly to build authentication workflow for applications that use [App ID](https://www.ibm.com/cloud/app-id) and OAuth 2.0. This starter is like an extension to the actual functionality of the spring security, that means you can do whatever you want to do with spring security, plus you get additional functionality to configure App ID. * [Installation and Usage](#installation-and-usage) * [Getting Started](#getting-started) * [Related Documentation](#related-documentation) ## Installation and Usage Add the following dependency Gradle: ```groovy dependencies { compile group: 'com.ibm.cloud', name: 'appid-spring-boot-starter', version: '0.0.5' } ``` Maven: ~~~ xml com.ibm.cloud appid-spring-boot-starter 0.0.5 ~~~ ## Getting Started This section contains examples of how to use App ID starter in your spring boot application. There are multiple ways to auto-configure App ID in your application by providing the App ID configuration details in the following ways in your application.yml file: 1. ``` spring: security: oauth2: client: registration: appid: provider: appid clientId: <> clientSecret: <> provider: appid: issuerUri: <> ``` This is standard way to configure App ID. 2. ``` spring: security: oauth2: client: registration: appid: clientId: <> clientSecret: <> issuerUri: <> ``` * issuerUri - URI that can either be an OpenID Connect discovery endpoint or an OAuth 2.0 Authorization Server Metadata endpoint defined by RFC 8414. 3. ``` spring: security: oauth2: client: registration: appid: clientId: <> clientSecret: <> region: <> tenantID: <> version: <> ``` * region - the region in which the App ID service is created in IBM Cloud. Ex: dallas, london etc., * clientID - is the client id of the App ID service you created. * clientSecret - is the client secret of the App ID service you created. * tenantID - is the tenant id of the App ID service you created. * version - is the App ID endpoints version, it is defaulted to 4, but if you would like to use a different version of App ID then this parameter should be set. This is optional. If you are not sure of the region, tenantID and version, use the above 2nd configuration by just providing issuerUri. The starter also supports multiple oauth provider configuration, i.e., you can configure the application with more than one OAuth provider. For example, you can do something like this: ``` spring: security: oauth2: client: registration: appid: region: <> clientId: <> clientSecret: <> tenantID: <> google: clientId: <> clientSecret: <> ``` ## Related Documentation * [Spring Boot documentation](https://projects.spring.io/spring-boot/) * [App ID blogs](https://cloud.ibm.com/docs/services/appid?topic=appid-rellinks) * [Spring Security](https://docs.spring.io/spring-security/site/docs/5.1.6.RELEASE/reference/htmlsingle/)