You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Application identity (#125)
* Adds support for application identity (app to app flow)
* Adds test cases for application identity
* Adds documentation on how to use App to App flow
* Bump up version number to 4.2.0
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,45 @@ To utilize the custom identity flow, the user must first register a public key i
243
243
244
244
Refer to the [documentation on custom identity](https://console.bluemix.net/docs/services/appid/custom.html#custom-identity) for more details on how to implement App ID's custom identity flow in your application.
245
245
246
+
247
+
### Application Identity
248
+
249
+
In case you want to invoke protected/secure APIs from applications or clients that are non user interactive, you can use the App ID app to app flow to authenticate and authorize your non user interactive applications.
250
+
251
+
App ID app to app flow implements the OAuth2.0 Client Credentials grant.
252
+
253
+
Before you can obtain access tokens for the app to app flow, you need to obtain a `client ID` and a `secret` by registering your application with your App ID instance. Refer to the [App ID app to app documentation](https://console.bluemix.net/docs/services/appid/app-to-app.html#registering) on how to register your applications.
254
+
255
+
Since the application needs to store the `client ID` and the `secret`, the app to app flow must never be used with untrusted clients such as mobile clients and browser based applications.
256
+
257
+
Also, note that this flow only returns an access token and no identity or refresh tokens are issued in this flow.
258
+
259
+
The code snippet below describes how to obtain the access tokens for the app to app flow.
//the token response contains the access_token, expires_in, token_type
277
+
} catch (err) {
278
+
console.log('err obtained : '+ err);
279
+
res.status(500).send(err.toString());
280
+
}
281
+
}
282
+
```
283
+
For more detailed information on using app to app flow, refer to the [App ID documentation](https://console.bluemix.net/docs/services/appid/app-to-app.html#app).
284
+
246
285
### Manage User Profile
247
286
Using the App ID UserProfileManager, you are able to create, delete, and retrieve user profile attributes as well as get additional info about a user.
248
287
@@ -469,7 +508,7 @@ Gets the stored details of the Cloud directory user.
0 commit comments