Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 provider for Bitrix24 #28404

Open
SunnyWolf opened this issue Dec 9, 2023 · 2 comments
Open

OAuth2 provider for Bitrix24 #28404

SunnyWolf opened this issue Dec 9, 2023 · 2 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first. type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@SunnyWolf
Copy link

Feature Description

Hello. I would like to suggest add new authentification provider for Bitrix24 (https://www.bitrix24.com/)

Bitrix24 is a product for collaboration, task and projects managment, CRM (JIRA Software Alternative).

Bitrix24 provider has possibility to develop integrations with authentications based on OAuth2 protocol, but has specific UserInfo api endpoint.

https://training.bitrix24.com/support/training/course/?COURSE_ID=169&LESSON_ID=20182
HOWTO setup Bitrix24:

  1. Open Bitrix24.
  2. Create new organization
  3. Go to Developer Resources->Other->Local Application
  4. Create new application
  5. Setup parameters:
  • App type: Server
  • Available as script only: yes
  • Your handler path: gitea auth handler
  • Initial installation path: empty
  • Application ID
  • Application key (client_secret)
  • Permissions: users_basic

image

How I think should look setting page for gitea:

  1. Auth url
    https://yourcompanydomain.bitrix24.ru/oauth/authorize/
    or
    https://yourcompanydomain.bitrix24.com/oauth/authorize/
    I think gitea interface should have a field with property Company Bitrix URL: yourcompanydomain.bitrix24.com
    Or Company and Domain [ru|com]
  2. Fields ClientId and ClientSecret
  3. Handler URL (needs for Bitrix24. It does not accept return_urls)

Getting user info:
Need to send GET request for https://companydomain.bitrix24.ru/rest/user.current.json
You will get json with such structure:

{
  "response": {
    "ID":1,
    "NAME":"John",
    "LAST_NAME":"Doe",
    "EMAIL":"john.doe@yourcompany.ru"
    ...
  }
}

Bitrix24 allows make "local app intergation" only for enterprice subcription. But it have 2 weeks free period, also you can registrate new organization for test cases.

Screenshots

No response

@SunnyWolf SunnyWolf added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Dec 9, 2023
@KN4CK3R
Copy link
Member

KN4CK3R commented Dec 12, 2023

This request may be better placed at https://github.com/markbates/goth, the auth provider we use.

@techknowlogick techknowlogick added the type/upstream This is an issue in one of Gitea's dependencies and should be reported there label Dec 12, 2023
@SunnyWolf
Copy link
Author

markbates/goth#533
Added new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first. type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

No branches or pull requests

3 participants