GithubHelp home page GithubHelp logo

aurelia-contrib / aurelia-open-id-connect-demos Goto Github PK

View Code? Open in Web Editor NEW
15.0 6.0 6.0 583 KB

Demos of aurelia-open-id-connect.

License: MIT License

TypeScript 67.25% HTML 10.95% JavaScript 12.57% CSS 2.49% C# 6.75%
aurelia open-id-connect oauth

aurelia-open-id-connect-demos's People

Contributors

gerbendekker avatar shaunluttin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aurelia-open-id-connect-demos's Issues

Demo app and documentation

The plug-in works fine. Just we need some documentation for various options you have in the plug-in and how to integrate them in our app.

And you already have Sample app can you convert it to work with this identityserver plug-in.

Thanks

How to get User in aurelia app

I am having trouble getting a user after the user is authenticated in IdentityServer.

So in home.ts I am adding following code :

`
import { autoinject, PLATFORM } from "aurelia-framework";
import { RouterConfiguration, Router } from "aurelia-router";
import { User } from "oidc-client";
import { OpenIdConnect, OpenIdConnectRoles } from "aurelia-open-id-connect";

@autoinject

export class Home {
public user: User;
public openIdConnect: OpenIdConnect;
public userdata:any;

constructor(private openIdConnect: OpenIdConnect) {
this.openIdConnect = openIdConnect;
}

activate() {
return this.openIdConnect.getUser().then((data: any) => (this.userdata = data));
}
}
`

result I get is promise.pending. how to resolve it.

Any help? Whats wrong I am doing here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.