Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. OpenId Connect on custom web apps

OpenId Connect on custom web apps

Scheduled Pinned Locked Moved App Packaging & Development
3 Posts 2 Posters 462 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      R Offline
      rjousse18
      wrote on last edited by
      #1

      Hi all !

      I have a problem with openid connect during the development of my web app.

      I try to develop a React App and I want to connect it with cloudron openid connect.

      I installed oidc-react, and I fill the information of the oidc cloudron like this :

      const oidcConfig = {
          onSignIn: () => {
              console.log("Test")
          },
          authority: 'https://my.nastream.fr',
          clientId: 'cid-ff7b5ddd41a5ef70056f017d19d8498f',
          clientSecret: "6efd5b4cf931434d0f4c020d080b6d31cf1b82820e8d7fe6bd76f8a32c9115eb",
          redirectUri: 'https://10.8.0.6:3000/',
          scope: "openid"
        };
      

      The problem is that all the steps works except when I have to fetch the /token endpoint. I have a 400 error without any error response. oidc-react sent this informations :

      2a6ca8d3-b021-46b2-8e62-b892cb030d91-image.png

      And I have this error from react :

      bdbf9634-71dc-4da9-af03-5b00c41302ae-image.png

      Any idea ? Maybe I have forget some parameters ?

      1 Reply Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        Currently the OpenID provider in Cloudron only works for backend applications, thus the CORS issue you see. Presumably you managed to get through the flow and got redirected back to your application, but then you try to call the token endpoint from the browser. This will be blocked by the browser but should be done from your backend.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rjousse18
          wrote on last edited by
          #3

          Is planned to unlock the provide for front app ?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search