# Can I use okta/okta-vue with identityserver4?

**URL:** <https://devforum.okta.com/t/can-i-use-okta-okta-vue-with-identityserver4/1626>\
**Category:** OAuth/OIDC\
**Tags:** vue\
**Created:** [April 17, 2018, 2:29pm UTC](https://devforum.okta.com/t/can-i-use-okta-okta-vue-with-identityserver4/1626 "2018-04-17T14:29:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaojosefilho](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@joaojosefilho](https://devforum.okta.com/u/joaojosefilho)\
**Post date:** [April 17, 2018, 2:29pm UTC](https://devforum.okta.com/t/can-i-use-okta-okta-vue-with-identityserver4/1626/1 "2018-04-17T14:29:47Z")

</div>

I can not connect okta/okta-vue(Vue.js) with the identityserver4

config.cs in Identityserver4

```
new Client
            {
                ClientName="TiT",
                ClientId="titId",                    
                AllowedGrantTypes=GrantTypes.Implicit,
                AllowAccessTokensViaBrowser=true,
                AccessTokenType = AccessTokenType.Reference, 
                UpdateAccessTokenClaimsOnRefresh = true,
                AllowOfflineAccess = true,

                RedirectUris = new List<string>()
                {
                    "http://localhost:8080/implicit/callback"
                },

                PostLogoutRedirectUris = {
                    //"https://localhost:44392/signout-callback-oidc"                        
                    //"http://localhost:8080/index.html"
                },
                AllowedCorsOrigins = {
                    "http://localhost:8080"
                },
                EnableLocalLogin=true,                   
                AllowedScopes =
                {
                    IdentityServerConstants.StandardScopes.OpenId,
                    IdentityServerConstants.StandardScopes.Profile,
                    IdentityServerConstants.StandardScopes.Address,
                    "titapi",                      
                    "roles",
                    "instituicao"                       
                },
                ClientSecrets = new List<Secret>()
                {
                    new Secret("secret".Sha256())
                },
                AlwaysIncludeUserClaimsInIdToken=true
            }

```

index.js in okta

```
Vue.use(Auth,{
      issuer: 'https://localhost:44392',
      client_id: 'titId',
      redirect_uri: 'http://localhost:8080/implicit/callback',
      scope: 'openid profile address roles instituicao titapi offline_access'
    })

    Vue.use(Router)

    let router = new Router({
      mode: 'history',
      routes: [
        {
          path: '/',
          name: 'Hello',
          component: Hello
        },
        {
          path: '/implicit/callback',
          component: Auth.handleCallback()
        },
        {
          path: '/posts-manager',
          name: 'PostsManager',
          component: PostsManager,
          meta: {
            requiresAuth: true
          }
        }
      ]
    })
router.beforeEach(Vue.prototype.$auth.authRedirectGuard())
export default router

```

Erro: Failed to load resource: the server responded with a status of 404 (Not Found)

Web:[https://localhost:44392/oauth2/v1/authorize?client\_id=titId&redirect\_uri=http%3A%2F%2Flocalhost%3A8080%2Fimplicit%2Fcallback&response\_type=id\_token%20token&response\_mode=fragment&state=fjNKrKB7a2ZleAEoq8ifjd2SfXzrwVA7HP7eXkK3ZeYrEhZuQzvl4BqKrYO1xIMf&nonce=zVlo3zpNPacSCoxRxMGZgTaXxW7ItdRBbjoD83uqy4dxBZXYrAGgQFDcocowXArd&scope=openid%20profile%20address%20roles%20instituicao%20titapi%20offline\_access](https://localhost:44392/oauth2/v1/authorize?client_id=titId&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fimplicit%2Fcallback&response_type=id_token%20token&response_mode=fragment&state=fjNKrKB7a2ZleAEoq8ifjd2SfXzrwVA7HP7eXkK3ZeYrEhZuQzvl4BqKrYO1xIMf&nonce=zVlo3zpNPacSCoxRxMGZgTaXxW7ItdRBbjoD83uqy4dxBZXYrAGgQFDcocowXArd&scope=openid%20profile%20address%20roles%20instituicao%20titapi%20offline_access)

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [April 17, 2018, 2:52pm UTC](https://devforum.okta.com/t/can-i-use-okta-okta-vue-with-identityserver4/1626/2 "2018-04-17T14:52:07Z")

</div>

Unfortunately, we don’t support using our SDKs with other OAuth providers. We’re happy to help you get it to work with Okta!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 9:51pm UTC](https://devforum.okta.com/t/can-i-use-okta-okta-vue-with-identityserver4/1626/3 "2024-01-12T21:51:40Z")

</div>

Closed on January 12, 2024, 9:51pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
