Self hosted blender cloud #55530

Closed
opened 2018-06-19 13:00:10 +02:00 by Arthur Toussaint · 9 comments

Hello,
I'm trying to install blender cloud server on a debian 9 (in order to keep everything internal), I managed to install pillar, with blender cloud and the correct extensions, but I still have a few problems :

  • Authentification : I can create local accounts using the CLI, but how can I use them and login with them on the web interface ?
  • Vendor assets : A lot of vendor assets (as typehead.js) are missing, and I can't seem to find any script that retrieve those assets... does such a script exist (no trace of any bower.json either... And nothing in the package.json...)
    Thanks in advance for the help, and thanks for all your dedicated work !
Hello, I'm trying to install blender cloud server on a debian 9 (in order to keep everything internal), I managed to install pillar, with blender cloud and the correct extensions, but I still have a few problems : - Authentification : I can create local accounts using the CLI, but how can I use them and login with them on the web interface ? - Vendor assets : A lot of vendor assets (as typehead.js) are missing, and I can't seem to find any script that retrieve those assets... does such a script exist (no trace of any bower.json either... And nothing in the package.json...) Thanks in advance for the help, and thanks for all your dedicated work !

Added subscriber: @konfiot1

Added subscriber: @konfiot1

Added subscribers: @dr.sybren, @lichtwerk

Added subscribers: @dr.sybren, @lichtwerk
Sybren A. Stüvel was assigned by Philipp Oeser 2018-06-19 16:11:05 +02:00

Hi, for buerocratic reasons, I'll change this to TODO, and would kindly ask @dr.sybren to share his wisdom? [I havent been through setting this up here myself...]

Hi, for buerocratic reasons, I'll change this to TODO, and would kindly ask @dr.sybren to share his wisdom? [I havent been through setting this up here myself...]

Added subscriber: @fsiddi

Added subscriber: @fsiddi

Authentification : I can create local accounts using the CLI, but how can I use them and login with them on the web interface ?

Local accounts aren't tested with Blender Cloud, as Cloud always uses Blender ID for authentication. You can host your own Blender ID, or investigate for yourself. Maybe I'm wrong here, though; @fsiddi implemented local accounts, so maybe more works than I'm aware of. I only work with Blender ID authentication.

Vendor assets : A lot of vendor assets (as typehead.js) are missing, and I can't seem to find any script that retrieve those assets... does such a script exist (no trace of any bower.json either... And nothing in the package.json...)

There is no mention anywhere of typehead.js in the source. There is jquery.typeahead-0.11.1.min.js mentioned, but that one is not missing (it's in pillar/web/static/assets/js/vendor/jquery.typeahead-0.11.1.min.js).

> Authentification : I can create local accounts using the CLI, but how can I use them and login with them on the web interface ? Local accounts aren't tested with Blender Cloud, as Cloud always uses Blender ID for authentication. You can host your own Blender ID, or investigate for yourself. Maybe I'm wrong here, though; @fsiddi implemented local accounts, so maybe more works than I'm aware of. I only work with Blender ID authentication. > Vendor assets : A lot of vendor assets (as typehead.js) are missing, and I can't seem to find any script that retrieve those assets... does such a script exist (no trace of any bower.json either... And nothing in the package.json...) There is no mention anywhere of `typehead.js` in the source. There is `jquery.typeahead-0.11.1.min.js` mentioned, but that one is not missing (it's in `pillar/web/static/assets/js/vendor/jquery.typeahead-0.11.1.min.js`).

Added subscriber: @bathal

Added subscriber: @bathal

Hello,

I work with @konfiot1 on this project. I successfully installed Blender ID locally and it seems to work fine. However, I can't figure out how to connect the local instance of blender cloud and blender id: when I click on "sign in" on the local blender cloud page, that redirects me to the blender id login form, but once I'm logged in, the redirection back to the blender cloud won't work, stating that there is an "Invalid client_id parameter value".

The problem lies in my blender-cloud/config_local.py, where I specify the id used in the URI. But I have no idea what value I should give it. My guess was that the id should beBLENDER_ID_ADDON_CLIENT_ID and the secret should be the SECRET_KEY that are in the blender-id/blenderid/settings.py but even that didn work. I tried a bunch of things but none of them seemed to work and I'm all out of ideas... I hope you could help me out on this one :/

Thank you for taking the time to answer our questions, and for developing such an amazing and powerful tool :)

EDIT: I finally found out how to solve this, the id and secret I was supposed to use were in the "Blender cloud devserver" application settings

Hello, I work with @konfiot1 on this project. I successfully installed Blender ID locally and it seems to work fine. However, I can't figure out how to connect the local instance of blender cloud and blender id: when I click on "sign in" on the local blender cloud page, that redirects me to the blender id login form, but once I'm logged in, the redirection back to the blender cloud won't work, stating that there is an "Invalid client_id parameter value". The problem lies in my blender-cloud/config_local.py, where I specify the id used in the URI. But I have no idea what value I should give it. My guess was that the id should beBLENDER_ID_ADDON_CLIENT_ID and the secret should be the SECRET_KEY that are in the blender-id/blenderid/settings.py but even that didn work. I tried a bunch of things but none of them seemed to work and I'm all out of ideas... I hope you could help me out on this one :/ Thank you for taking the time to answer our questions, and for developing such an amazing and powerful tool :) EDIT: I finally found out how to solve this, the id and secret I was supposed to use were in the "Blender cloud devserver" application settings

Please do not use the devserver settings as-is. This will make your install insecure as everybody has access to that secret. You can use it as a basis, but change the secret so that it's totally new and random. The best way to do this is to create a new OAuth Application in the Blender ID admin and use the devserver settings as a template. Then delete the devserver OAuth Application.

The settings in Blender Cloud just have to match the client ID and secret that you configure in Blender ID.

Please do *not* use the devserver settings as-is. This will make your install insecure as everybody has access to that secret. You can use it as a basis, but change the secret so that it's totally new and random. The best way to do this is to create a new OAuth Application in the Blender ID admin and use the devserver settings as a template. Then delete the devserver OAuth Application. The settings in Blender Cloud just have to match the client ID and secret that you configure in Blender ID.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/blender-cloud#55530
No description provided.