Comments (5)
Hey @gentle9, in this case - yes, you need to create your own AuthProvider, as an example, you can use EmailPassProvider.
from nebular.
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.
@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.
Closing due to inactivity.
from nebular.
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)
- Repository state and engagement with the community HOT 9
- accordian
- Angular/Nebular upgrade styling not working properly HOT 1
- Nb Stepper Long Names Overlapping on Horizontal Alignment
- #nebular
- Support for Angular 17 HOT 4
- Install Nebular theme error -> Could not read Angular module file: /src/[object Object].ts HOT 8
- [Calendar] [DatePicker] components aren't translated when switching languages HOT 1
- nb-tabset not workign with ng-content
- The Nebular Dropdown (nbSelect) remains open and does not collapse when scrolling the page. HOT 1
- caught error defaultview
- error handling when serve the project(ng serve) I'm using angular 12th version
- logout
- logout
- pipe table
- Theme is not a map.
- Could not read Angular module file: /src/null.ts (Standalone) or /src/[object Object].ts (ng modules) HOT 6
- Docs: latest version 9.0.0 but appear to have version 13 installed HOT 2
- NbTreeGrid Error NullInjectorError: No provider for InjectionToken CDK_TABLE! HOT 10
- RangePicker only Month and Year
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nebular.