Coder Social home page Coder Social logo

Auth with Websocket about nebular HOT 5 CLOSED

akveo avatar akveo commented on May 9, 2024
Auth with Websocket

from nebular.

Comments (5)

nnixaa avatar nnixaa commented on May 9, 2024

Hey @gentle9, in this case - yes, you need to create your own AuthProvider, as an example, you can use EmailPassProvider.

from nebular.

gentle9 avatar gentle9 commented on May 9, 2024

Hey @nnixaa thank you for your answer. I am trying to create my own AuthProvider. For that I have cloned the project and copy the auth folder to my project.
But how do I setup it up correctly?
I already have imported the auth module in my app.module.ts and changed the imports in the app-routing.module.ts

But how can change it to use my new AuthProvider?

I am using the ngx-admin template.

from nebular.

nnixaa avatar nnixaa commented on May 9, 2024

@gentle9 basically you don't need to copy the whole auth folder, just copy the emailpass provider, rename it, adjust the logic, then provide it here https://github.com/akveo/ngx-admin/blob/master/src/app/%40core/core.module.ts#L24 (as it should be a service) and lastly - ask auth-module to use your provider, instead of the default one here https://github.com/akveo/ngx-admin/blob/master/src/app/%40core/core.module.ts#L14
Hope this helps!

from nebular.

nnixaa avatar nnixaa commented on May 9, 2024

Closing due to inactivity.

from nebular.

jalbersdorfer avatar jalbersdorfer commented on May 9, 2024

I think I have the same issue - started to use ngx-admin with a feathersjs backend and don't get the websocket (socket.io) connection authenticated. The solution above seems no longer valid as there is no longer something like a NbEmailPassAuthProvider, but a password-strategy which seems to be an evolution of it.

Any help to integrate Websocket Auth would be appreciated. - Thanks.
@gentle9: did you solve it at the end?

from nebular.

Related Issues (20)

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.