Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Add permission scope support to builder #908

Closed
Blackbaud-PaulCrowder opened this issue Jul 19, 2017 · 2 comments
Closed

Add permission scope support to builder #908

Blackbaud-PaulCrowder opened this issue Jul 19, 2017 · 2 comments

Comments

@Blackbaud-PaulCrowder
Copy link
Member

SPAs should be able to define a permission scope as a set of permissions to be retrieved when making authenticated calls via SkyAuthHttp.

@Blackbaud-PaulCrowder
Copy link
Member Author

In blackbaud/skyux-builder#245

@Blackbaud-PaulCrowder
Copy link
Member Author

Notes for documentation:

To specify a permission scope, use the SkyAuthHttp service in @blackbaud/skyux-builder/runtime and call its withScope() method, then chain the get()/post()/etc. to that method. Example:

import { SkyAuthHttp } from '@blackbaud/skyux-builder/runtime';

export class MyService
  constructor(private http: SkyAuthHttp) { }

  public getThings() {
    return this.http
      .withScope('my_permission_scope')
      .get(someUrl)
      .map((response)...
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant