Comments (5)
Hi all,
We have no immediate plans to support this, as it requires a bit of refactoring in our okta-auth-js
repo. Please give a 👍 to this issue or this issue reported in okta-auth-js
, as we will be tracking our progress there.
from okta-oidc-js.
Hi @Slavp , thanks for the request. Do you have a longer stacktrace that shows where window is being referenced?
from okta-oidc-js.
The exact step at which the error occurs is when you trying add OktaAuthService to a component.
Node Express server listening on http://localhost:3000
ERROR ReferenceError: window is not defined
at Object.util.getNativeConsole (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35076:3)
at Object.util.getConsole (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35080:28)
at Object.util.warn (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35091:8)
at new TokenManager (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:168477:10)
at OktaAuthBuilder (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:166668:22)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:34932:15
at new OktaAuth (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:166731:37)
at new OktaAuthService (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:42229:25)
at _createClass (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11188:20)
at _createProviderInstance$1 (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11160:26)
at resolveNgModuleDep (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11145:17)
at NgModuleRef_.get (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12381:16)
at resolveDep (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12879:45)
at createClass (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12749:32)
at createDirectiveInstance (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12586:37)
at createViewNodes (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14047:53)
at callViewAction (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14481:13)
at execComponentViewsAction (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14390:13)
at createViewNodes (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14075:5)
at createRootView (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:13936:5)
at Object.createProdRootView [as createRootView] (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14629:12)
at ComponentFactory_.create (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11531:46)
at ComponentFactoryBoundToModule.create (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:4302:29)
at ApplicationRef.bootstrap (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:6126:57)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:5853:81
at Array.forEach (<anonymous>)
at PlatformRef._moduleDoBootstrap (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5853:44)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:5774:27
at ZoneDelegate.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150558:26)
at Object.onInvoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5024:33)
at ZoneDelegate.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150557:32)
at Zone.run (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150308:43)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:151040:57
at ZoneDelegate.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150591:31)
at Object.onInvokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5015:33)
at ZoneDelegate.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150590:36)
at Zone.runTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150358:47)
at drainMicroTaskQueue (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150764:35)
at ZoneTask.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150669:21)
at Server.ZoneTask.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150654:48)
at emitTwo (events.js:126:13)
at Server.emit (events.js:214:7)
at parserOnIncoming (_http_server.js:602:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
ReferenceError: window is not defined
at Object.util.getNativeConsole (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35076:3)
at Object.util.getConsole (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35080:28)
at Object.util.warn (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:35091:8)
at new TokenManager (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:168477:10)
at OktaAuthBuilder (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:166668:22)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:34932:15
at new OktaAuth (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:166731:37)
at new OktaAuthService (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:42229:25)
at _createClass (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11188:20)
at _createProviderInstance$1 (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11160:26)
at resolveNgModuleDep (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11145:17)
at NgModuleRef_.get (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12381:16)
at resolveDep (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12879:45)
at createClass (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12749:32)
at createDirectiveInstance (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:12586:37)
at createViewNodes (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14047:53)
at callViewAction (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14481:13)
at execComponentViewsAction (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14390:13)
at createViewNodes (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14075:5)
at createRootView (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:13936:5)
at Object.createProdRootView [as createRootView] (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:14629:12)
at ComponentFactory_.create (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:11531:46)
at ComponentFactoryBoundToModule.create (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:4302:29)
at ApplicationRef.bootstrap (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:6126:57)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:5853:81
at Array.forEach (<anonymous>)
at PlatformRef._moduleDoBootstrap (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5853:44)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:5774:27
at ZoneDelegate.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150558:26)
at Object.onInvoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5024:33)
at ZoneDelegate.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150557:32)
at Zone.run (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150308:43)
at /Users/someUser/WebstormProjects/universal-starter/dist/server.js:151040:57
at ZoneDelegate.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150591:31)
at Object.onInvokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:5015:33)
at ZoneDelegate.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150590:36)
at Zone.runTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150358:47)
at drainMicroTaskQueue (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150764:35)
at ZoneTask.invokeTask (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150669:21)
at Server.ZoneTask.invoke (/Users/someUser/WebstormProjects/universal-starter/dist/server.js:150654:48)
at emitTwo (events.js:126:13)
at Server.emit (events.js:214:7)
at parserOnIncoming (_http_server.js:602:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
from okta-oidc-js.
Thanks @Slavp , it looks like this concerns the underlying Auth JS library which would need some updates to support this. I don't have a timeline estimate for you, but this issue would be the best one to follow: okta/okta-auth-js#53
from okta-oidc-js.
Good News!
We released the Okta AuthN SDK as a part of the okta-auth-js library, check it out!
https://github.com/okta/okta-auth-js#node-js-usage
from okta-oidc-js.
Related Issues (20)
- Security vulnerabilities in jwt-verifier dependencies HOT 2
- @okta/jwt-verifier > njwt > [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() HOT 1
- ID token refresh Feature Request/Question HOT 1
- decode function ? HOT 2
- a way to verify using a pem ? HOT 1
- Typescript Options interface missing jwskUri property HOT 2
- Security vulnerability in [email protected] HOT 2
- okta-oidc-js error in documentation on how to work with Proxies HOT 2
- Showing component only for authenticated user, but for every path, without rerendering each time path changes. HOT 5
- SecureRoute is not passing Router props to my component HOT 2
- security vulnerabilities from lodash HOT 2
- done is not a function in oidcUtils.bootstrapPassportStrategy HOT 12
- react-router Link to a SecureRoute yields "OAuth flow response state doesn't match request state" HOT 4
- /implicit/callback route not working for any version of @okta/okta-angular HOT 5
- Security vulnerability in jwks-rsa's dependency HOT 5
- Server-side request forgery HOT 3
- Creating Multiple OIDC instances in Nodejs('@okta/oidc-middleware') HOT 6
- Error while resolving signing key for kid . Unable to verify first certificate HOT 2
- JWT-verifier -> [JwtParseError: Unexpected signature algorithm] HOT 6
- JWT-verifier -> Unable to find a signing key that matches 'xxxx' HOT 4
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 okta-oidc-js.