Socket
Socket
Sign inDemoInstall

@christianacca/angular-swa-auth

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@christianacca/angular-swa-auth - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

24

package.json
{
"name": "@christianacca/angular-swa-auth",
"version": "1.0.0",
"description": "Programmatically work with Azure Static Web Apps authentication in an angular app",
"version": "1.0.1",
"keywords": [
"azure",
"staticwebapp",
"angular",
"auth"
],
"homepage": "https://docs.angular-swa-auth.codingdemo.co.uk/",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/christianacca/static-web-apps-auth",
"directory": "libs/angular-swa-auth"
},
"peerDependencies": {
"@angular/common": "^12.1.0",
"@angular/core": "^12.1.0",
"@angular/router": "^12.1.0",
"rxjs": "~6.6.0"
"@angular/common": ">=10.0.0",
"@angular/core": ">=10.0.0",
"@angular/router": ">=10.0.0",
"rxjs": ">=6.5.0"
},

@@ -10,0 +24,0 @@ "dependencies": {

@@ -7,13 +7,13 @@ # @christianacca/angular-swa-auth

- an [`AuthService`](https://projects.codingmonster.co.uk/static-web-apps-auth/injectables/AuthService.html) facade
- an [`AuthService`](https://docs.angular-swa-auth.codingdemo.co.uk/injectables/AuthService.html) facade
- methods to programmatically trigger sign-in, sign-up, sign-out and purge flows
- exposes convenient observables to allow your app to examine and/or react to current user and authentication session events
- optionally send authentication session events to your functions app
- [`AuthGuard`](https://projects.codingmonster.co.uk/static-web-apps-auth/guards/AuthGuard.html)
- [`AuthGuard`](https://docs.angular-swa-auth.codingdemo.co.uk/guards/AuthGuard.html)
- triggers the sign in flow for all or some of the routes in an app when the user is not already authenticated
- [AutoLoginHttpInterceptor](https://projects.codingmonster.co.uk/static-web-apps-auth/interceptors/AutoLoginHttpInterceptor.html)
- [AutoLoginHttpInterceptor](https://docs.angular-swa-auth.codingdemo.co.uk/interceptors/AutoLoginHttpInterceptor.html)
- triggers the sign in flow when your functions api return an unauthenticated (401) response
- convenient types and values representing the authenticated user and identity providers
- configure the list of identity providers that should be available to your users to sign in with
- [`IdentityProviderInteractiveSelectorService`](https://projects.codingmonster.co.uk/static-web-apps-auth/injectables/IdentityProviderInteractiveSelectorService.html)
- [`IdentityProviderInteractiveSelectorService`](https://docs.angular-swa-auth.codingdemo.co.uk/injectables/IdentityProviderInteractiveSelectorService.html)
- utility service that can be used to build a UI to prompt the user to select an identity provider

@@ -29,3 +29,4 @@

If this is your app, then checkout [angular-swa-auth-nolib](https://angular-swa-auth-nolib.codingdemo.co.uk) sample app
If this is your app, then have a look at [angular-swa-auth-nolib](https://angular-swa-auth-nolib.codingdemo.co.uk):
a sample app that does not use this library to implement authentication

@@ -69,3 +70,3 @@ For all other use cases, this library will likely add value.

The following is guidance only. For an alternative, where the user is prompted with a modal
to select the identity provider to sign in with see [`IdentityProviderInteractiveSelectorService`](https://projects.codingmonster.co.uk/static-web-apps-auth/injectables/IdentityProviderInteractiveSelectorService.html)
to select the identity provider to sign in with see [`IdentityProviderInteractiveSelectorService`](https://docs.angular-swa-auth.codingdemo.co.uk/injectables/IdentityProviderInteractiveSelectorService.html)

@@ -153,3 +154,3 @@ ```ts

**IMPORTANT**: you will need to add a function to your functions app api that receives via a POST an instance of [`AuthEventPayload`](https://projects.codingmonster.co.uk/static-web-apps-auth/interfaces/AuthEventPayload.html)
**IMPORTANT**: you will need to add a function to your functions app api that receives via a POST an instance of [`AuthEventPayload`](https://docs.angular-swa-auth.codingdemo.co.uk/interfaces/AuthEventPayload.html)

@@ -159,3 +160,3 @@ ## More resources

- Library source code: <https://github.com/christianacca/static-web-apps-auth/tree/master/libs/angular-swa-auth>
- Library documentation: [projects.codingmonster.co.uk/static-web-apps-auth](https://projects.codingmonster.co.uk/static-web-apps-auth)
- Library documentation: [docs.angular-swa-auth.codingdemo.co.uk](https://docs.angular-swa-auth.codingdemo.co.uk)
- Full working demo:

@@ -162,0 +163,0 @@ - deployed site: [angular-swa-auth.codingdemo.co.uk](https://angular-swa-auth.codingdemo.co.uk)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc