DeviceFarmer / stf

Control and manage Android devices from your browser.
https://devicefarmer.github.io
Other
3.38k stars 483 forks source link

How to set up to login by password/SSO? #769

Open EdenLyf opened 5 months ago

EdenLyf commented 5 months ago

A great platform that I can using to manage the test devices in our team easily.

I have set up the platform by Docker container, and I have set upstf/docker-compose.yaml like this, so I can login by Name and Email.

I'm confused with the 2 questions,

  1. I want to login by Email and password, what else and where I need to set up?
  2. If we want to using the Google email in our team to login by SSO, is it supported, how and where I need to set up?
version: "3"

services:
  rethinkdb:
    container_name: rethinkdb
    image: rethinkdb:2.4.2
    ports:
      - "8080:8080"
      - "28015:28015"
    restart: unless-stopped
    volumes:
        - "rethinkdb-data:/data"
    command: "rethinkdb --bind all --cache-size 2048"

  stf:
    container_name: stf
    image: devicefarmer/stf
    ports:
      - "7100:7100"
      - "7110:7110"
      - "7400-7500:7400-7500"
    environment:
      - TZ='America/Los_Angeles'
      - RETHINKDB_PORT_28015_TCP=tcp://rethinkdb:28015
      - STF_ADMIN_EMAIL=my_email
      - STF_ADMIN_NAME=my_username
      - STF_ROOT_GROUP_NAME=my_group
    restart: unless-stopped
    command: stf local --adb-host host.docker.internal --public-ip my_ip_address --provider-min-port 7400 --provider-max-port 7500

volumes:
  rethinkdb-data: {}

stf1

denis99999 commented 5 months ago

@EdenLyf , there are several authentication methods available in STF (e.g. SAML 2.0, OAuth 2.0, LDAP), you have to take a look at DEPLOYMENT.md documentation