Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the Auth modules to work? #61

Closed
itanimo opened this issue Nov 6, 2017 · 4 comments
Closed

How to get the Auth modules to work? #61

itanimo opened this issue Nov 6, 2017 · 4 comments

Comments

@itanimo
Copy link

itanimo commented Nov 6, 2017

Using ngx-admin, I'm trying to configure my login/logout/auth services in my application however I can't find the proper ts files to configure it. All I was able to find were the auth folder in node_modules/nebular/auth/components

directory. Where should I apply the proper http urls , session token management, and such?

Example of what I need to add:

` public onSubmit(values: Object): void {

    this.submitted = true;

    if (this.form.valid) {

      this.loading = true;

      console.log(this.username.value);

      this.authenticationService.login(this.username.value, this.password.value)

        .subscribe(

        data => {

          this.router.navigate(['dashboard']);

        },

        error => {

          console.log(error);

        });
    }
  }`

Where can I modify the login component for example? I couldn't find any login.component.ts, only login.component.d.ts

@nnixaa
Copy link
Collaborator

nnixaa commented Nov 6, 2017

Hi @safo91, please read through the documentation articles on Auth here https://akveo.github.io/nebular/#/docs/auth/introduction, try following suggested steps there, then kindly search through existing issues if you have any questions or otherwise create a specific issue here. Thanks.

@itanimo
Copy link
Author

itanimo commented Nov 6, 2017

I did go through the articles, it never specified where to add the code. In fact, I'm not even sure if I have the code already installed with the package. How can I tell my auth is already configured?

@marcus2vinicius
Copy link

I have the same problem

@nnixaa
Copy link
Collaborator

nnixaa commented Dec 19, 2017

Hi Guys, please create your own issue with a complete description, thanks.

@akveo akveo locked and limited conversation to collaborators Dec 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants