Commit Graph

1836 Commits

Author SHA1 Message Date
Livio Spring
3539418a4a
fix: handle UserLoginMustBeDomain changes correctly (#4765)
* fix: handle UserLoginMustBeDomain changes correctly

* fix: remove verified domains (and not only primary) as suffix

* fix: ensure testability by changing map to slice

* cleanup

* reduce complexity of DomainPolicyUsernamesWriteModel.Reduce()

* add test for removed org policy
2022-12-06 09:01:31 +01:00
Max Peintner
97fe041a86
docs: add tailwindcss for styles, oidc authorize endpoint playground (#4707)
* variable parser

* rm plugin

* set fcn

* env

* EnvCode component

* cleanup env demo

* env

* rm remark plugin

* auth request context

* auth req component

* authorize endpoint construction

* rev react page

* fix endpoint

* styling

* query params with anchor

* desc

* tailwind coexistence

* fix styles

* add login_hint, organizationId scope

* auth request without prompt

* show login_hint

* sync displayed url with actual href

* fix fcn

* coloring

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/src/components/authrequest.jsx

Co-authored-by: mffap <mpa@zitadel.com>

* add plausible, header

* add pkce

* move

* adds pkce code challenge

* replace cboa

* reaname and move to required

* fall back to cboa due to webpack error

* trailing slash

* reorder org_id

* remove resourceowner

* texts

* update references

* buffer, fix some react dom components

* Apply suggestions from code review

Co-authored-by: Florian Forster <florian@zitadel.com>

* standard scopes

Co-authored-by: mffap <mpa@zitadel.com>
Co-authored-by: Florian Forster <florian@zitadel.com>
2022-12-05 18:36:12 +01:00
Stefan Benz
add232d1dd
fix: correct where statement for AppByOIDCClientID (#4815)
Co-authored-by: Silvan <silvan.reusser@gmail.com>
2022-12-02 13:15:09 +00:00
Silvan
e7137dba60
fix(projection): new version of oidc_settings (#4811)
There was a field delete some commits back but the projection version was not updated, that's why we update now
2022-12-02 12:54:28 +00:00
Christoph Daniel Miksche
0175076dfc
fix(database): create column only if not exists (#4812)
The statements caused an error for me because the columns were already existing.
2022-12-02 10:48:39 +00:00
Silvan
384cc34303
chore: cockroach version (#4775)
* chore: cockroach version for tests
2022-12-02 09:42:27 +00:00
Max Peintner
9c146640b3
fix(console): fix login text ref (#4806) 2022-12-01 15:59:16 +00:00
mffap
cf4780fe6b
docs(legal): adds representative in the eu (#4799)
* adds representative in the eu

* date

Co-authored-by: Florian Forster <florian@zitadel.com>
2022-12-01 14:36:41 +01:00
Silvan
62b7352a29
fix(setup): create indexes only if not exists (#4801) 2022-12-01 14:31:01 +01:00
Stefan Benz
9626897834
fix(logintexts): fix several custom text attributes for get and set (#4733)
* fix(logintexts): fix several custom text attributes for get and set

* fix(logintexts): fix externalUserNotFound attribute for json unmarshalling and reduce for customTexts

* fix: correct imports for linting
2022-12-01 13:31:46 +01:00
Max Peintner
9fbd1034c2
docs(NextJS): use auth method basic for guides (#4802)
* docs: nextjs using code with auth method basic

* Update docs/docs/examples/login/nextjs-b2b.md

Co-authored-by: Florian Forster <florian@zitadel.com>

Co-authored-by: Florian Forster <florian@zitadel.com>
2022-12-01 11:25:17 +01:00
Silvan
28760ab4b3
fix(query): add tracing for each method (#4777)
* fix(query): add tracing for each method
2022-12-01 09:18:53 +01:00
Christoph Daniel Miksche
069b3570f5
fix(database): create index only if not exists (#4798)
The statements caused an error for me because the indexes were already existing.

Co-authored-by: Silvan <silvan.reusser@gmail.com>
2022-12-01 07:25:14 +00:00
Fabi
8fa0e3843b
docs: Update BUG_REPORT.yaml (#4793)
Update BUG_REPORT.yaml
2022-11-30 18:46:50 +00:00
Silvan
f3e6f3b23b
feat: remove org (#4148)
* feat(command): remove org

* refactor: imports, unused code, error handling

* reduce org removed in action

* add org deletion to projections

* add org removal to projections

* add org removal to projections

* org removed projection

* lint import

* projections

* fix: table names in tests

* fix: table names in tests

* logging

* add org state

* fix(domain): add Owner removed to object details

* feat(ListQuery): add with owner removed

* fix(org-delete): add bool to functions to select with owner removed

* fix(org-delete): add bools to user grants with events to determine if dependencies lost owner

* fix(org-delete): add unit tests for owner removed and org removed events

* fix(org-delete): add handling of org remove for grants and members

* fix(org-delete): correction of unit tests for owner removed

* fix(org-delete): update projections, unit tests and get functions

* fix(org-delete): add change date to authnkeys and owner removed to org metadata

* fix(org-delete): include owner removed for login names

* fix(org-delete): some column fixes in projections and build for queries with owner removed

* indexes

* fix(org-delete): include review changes

* fix(org-delete): change user projection name after merge

* fix(org-delete): include review changes for project grant where no project owner is necessary

* fix(org-delete): include auth and adminapi tables with owner removed information

* fix(org-delete): cleanup username and orgdomain uniqueconstraints when org is removed

* fix(org-delete): add permissions for org.remove

* remove unnecessary unique constraints

* fix column order in primary keys

* fix(org-delete): include review changes

* fix(org-delete): add owner removed indexes and chang setup step to create tables

* fix(org-delete): move PK order of instance_id and change added user_grant from review

* fix(org-delete): no params for prepareUserQuery

* change to step 6

* merge main

* fix(org-delete): OldUserName rename to private

* fix linting

* cleanup

* fix: remove org test

* create prerelease

* chore: delete org-delete as prerelease

Co-authored-by: Stefan Benz <stefan@caos.ch>
Co-authored-by: Livio Spring <livio.a@gmail.com>
Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2022-11-30 17:01:17 +01:00
Fabi
21a4e73bb6
docs: revert change on bug report template (#4792) 2022-11-30 14:34:45 +00:00
Fabi
2915303f91
docs: revert change on bug report template (#4790) 2022-11-30 14:00:31 +00:00
Fabi
f4437ed797
docs: revert change on bug report template (#4785)
* docs: revert change on bug report template

* docs: revert change on bug report template
2022-11-30 13:13:54 +00:00
Hanrea
79d1c06515
fix: Update missing key of Chinese translation (#4769)
Update missing key of Chinese translation

Update missing key of Chinese translation,
2022-11-28 16:20:11 +01:00
Silvan
5a1f4c387c
docs(action): specify docs (#4709)
* docs: add actions section

* docs(actions): add modules

* docs: actions

* docs(actions): start with register flows

* add calls

* docs: all actions documented

* docs(actions): unify

* docs(actions): unify texts

* docs: apply suggestions from code review

Co-authored-by: mffap <mpa@zitadel.com>

* docs(actions): clarifications

* docs: return values italic

* docs: fix broken links

* docs: fix broken links

* docs: fix broken links

* docs: fix broken links

* Update docs/docs/apis/actions/introduction.md

Co-authored-by: mffap <mpa@zitadel.com>

* docs(actions): link actions examples

* docs: remove unused section

Co-authored-by: mffap <mpa@zitadel.com>
Co-authored-by: Florian Forster <florian@zitadel.com>
2022-11-28 09:20:33 +01:00
mffap
789faa8ce8
docs: update images concept orgs (#4763)
docs: update images
2022-11-24 14:01:07 +01:00
Max Peintner
268db1d5ec
docs: update example links (#4752)
update example links
2022-11-24 10:23:31 +01:00
Livio Spring
062887269b
fix(login): check user state before ignoreUnknownUsernames setting (#4759)
Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
2022-11-24 09:13:19 +00:00
Fabi
7e2666153e
docs: add error response to oidc possible errors (#4753) 2022-11-24 08:46:51 +00:00
Fabi
62c03bc65d
docs: Product management (#4715)
* docs: bug report form

* docs: issue label description

* Update .github/ISSUE_TEMPLATE/BUG_REPORT.yaml

Co-authored-by: Florian Forster <florian@zitadel.com>

* docs: passwordless registration

* docs: passwordless registration

* docs: add error response to oidc possible errors

Co-authored-by: Florian Forster <florian@zitadel.com>
2022-11-24 09:44:53 +01:00
Julien Tanay
d4809b0dc1
doc: Improve _defaultuser doc (#4750)
Improve defaultuser doc

Add example using an external domain

Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
2022-11-24 08:05:49 +00:00
Fabi
35832fdd80
docs: passwordless registration (#4743)
* docs: passwordless registration

* docs: passwordless registration
2022-11-24 08:54:00 +01:00
Elio Bischof
f4e2349440
docs(self-hosted): improve production checklist (#4748)
* docs(self-hosted): improve production checklist

* split cdn

* data management
2022-11-23 19:17:03 +00:00
Livio Spring
f86d057a92
fix: ensure setup steps are done in order and one at a time (#4749)
* fix: ensure setup steps are done in order and one at a time

* fix err handling
2022-11-23 15:31:59 +00:00
Elio Bischof
c64a29a0a0
docs(self-hosted): fix link to default steps.yaml (#4754) 2022-11-23 16:00:28 +01:00
Fabi
5de6a5a8c0
docs: Request to ZITADEL API with PAT (#4751)
* docs: Request to ZITADEL API with PAT

* docs: add error response to oidc possible errors

* Update docs/docs/guides/integrate/pat.md

Co-authored-by: Elio Bischof <eliobischof@gmail.com>

* Update docs/docs/guides/integrate/pat.md

Co-authored-by: Elio Bischof <eliobischof@gmail.com>

* Update docs/docs/guides/integrate/pat.md

Co-authored-by: Elio Bischof <eliobischof@gmail.com>

* docs: add error response to oidc possible errors

Co-authored-by: Elio Bischof <eliobischof@gmail.com>
2022-11-23 15:06:09 +01:00
Max Peintner
1b868b6a7f
docs: nextjs b2b example, plausible outbound links script (#4738)
* b2b example, link from b2b solution scenario, cleanup nextjs doc

* b2b md

* repo link

* add plausible outbound events

* update examples link
2022-11-23 13:27:09 +00:00
Livio Spring
6a1a907874
fix: change index names to work with postgres (#4740) 2022-11-23 11:25:49 +00:00
Fabi
ff595697df
docs: scenario login with email (#4741)
* docs: issue label description

* fix img naming

Co-authored-by: Maximilian Panne <mpa@zitadel.com>
2022-11-23 09:44:19 +01:00
Livio Spring
e8babf1048
fix: reduce load on view tables (#4716)
* fix: reduce load on view tables

* create prerelease

* linting: pass context to view handlers

* fix error handling of refresh token handler

* fix: improve processing of successful instanceIDs on views

* fix revert intended change in .golangci.yaml

* fix: set timeout for processInstances in spooler

* fix: reduce update to active tokens on profile change

* change token expiration query to db now()

* remove branch from .releaserc.js
2022-11-22 07:36:48 +01:00
Livio Spring
29441ce4b6
feat: save last occurrence of failed events and fix instance filtering (#4710)
* fix: filter failed events and current sequence correctly

* fix failed events sorting column

* feat: save last occurrence of failed event

* fix failedEvents query and update sql statements

* change sql statement to only create index

* fix linting

* fix linting

* Update internal/query/failed_events.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* update job name on test-docs to match the one from test-code

Co-authored-by: Silvan <silvan.reusser@gmail.com>
2022-11-18 13:49:38 +01:00
Livio Spring
6d787bfd62
fix: ensure actions execution on idp flows (#4711) 2022-11-18 12:49:17 +01:00
Max Peintner
2a8dfab192
fix(login): mfa prompt UI improvements, fix register field validation, email validation (#4672)
* fix: mfa prompt styling

* register password field validation

* loginname overflow, mfa hover effect

* cleanup

* Update internal/api/ui/login/static/resources/scripts/password_policy_check.js

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* prettier if check

* cleanup

* Update internal/api/ui/login/static/resources/scripts/password_policy_check.js

Co-authored-by: Livio Spring <livio.a@gmail.com>

* fix confirmation validation, cleanup

* rm log

* email type validation

* add email validation

* change pattern

* pattern

* comment RFC 2822

* dont wrapp org name

* rm email validation

Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: Livio Spring <livio.a@gmail.com>
2022-11-17 13:25:09 +01:00
Max Peintner
7db87f4646
fix(console): improve project counters, dark primary color change, smaller UI improvements (#4620)
* dark primary color change, project counter, link color improvements

* update fallback colors

* fallback colors

Co-authored-by: Livio Spring <livio.a@gmail.com>
2022-11-17 07:43:53 +00:00
Silvan
dbb18342a1
chore(linting): add golang-ci lint config (#3899)
* chore(linting): add golang-ci lint config

* more linters

* document more linters

* describe more linters

* describe more linters

* add descriptions

* add descriptions

* config is now valid

* try in action

* add runs on

* dont change out format

* make a change

* make a change

* add timeout

* maybe this way?

* oupsi

* only new issues

* chore: linter settings

* chore: concurRency

* docs(contrib): add linter

* chore: rename github job

* chore: rename github job

* chore(linter): use latest

* chore(linter): version

* chore(action): add working directory

* chore(linting): remove generated files

* build cache

* docs(contrib): recommend golangci-lint as linter in IDE
2022-11-16 11:43:24 +01:00
Stefan Benz
24ae69b726
fix: update saml dependency v0.0.8=>v0.0.9 (#4701) 2022-11-15 06:30:36 +00:00
Max Peintner
6c7a05ea0d
fix(console): copyable username (#4683)
fix: copyable username

Co-authored-by: Livio Spring <livio.a@gmail.com>
2022-11-14 17:11:14 +01:00
Max Peintner
6c01e6a55b
fix(console): dependencies, general settings spinner, open domain validation after creation, change org-create default owner (#4676)
* fix: general settings spinner, domain validation after add

* chore(deps): bump @grpc/grpc-js from 1.7.1 to 1.7.3 in /console (#4667)

Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.7.1 to 1.7.3.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/v1.7.1...@grpc/grpc-js@1.7.3)

---
updated-dependencies:
- dependency-name: "@grpc/grpc-js"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ng

* chore(deps-dev): bump @typescript-eslint/parser from 5.39.0 to 5.42.0 in /console (#4666)

chore(deps-dev): bump @typescript-eslint/parser in /console

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.39.0 to 5.42.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.42.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* eslint

* chore(deps): bump tslib from 2.4.0 to 2.4.1 in /console (#4662)

Bumps [tslib](https://github.com/Microsoft/tslib) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.4.0...2.4.1)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* downgrade grpc-js

* up warning

* pack lock

* change org create default

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 15:41:25 +00:00
Stefan Benz
e183fe668a
fix: delete limit of login policy query for idp links list (#4654)
* fix: delete limit of login policy query for idp links list

* set isDefault to false

* fix: change orderby to desc if custom login policy is queried

* fix: split select for idp links from select for login policy

Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Livio Spring <livio.a@gmail.com>
2022-11-14 15:15:29 +00:00
Max Peintner
bc715acaa9
docs: update flutter quickstart (#4652)
* docs: update flutter for web support

* flutter doc

* add repo link

* update lockfile

* Update docs/docs/examples/login/flutter.md

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/docs/examples/login/flutter.md

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/docs/examples/login/flutter.md

Co-authored-by: mffap <mpa@zitadel.com>

* Update docs/docs/examples/login/flutter.md

Co-authored-by: mffap <mpa@zitadel.com>

Co-authored-by: mffap <mpa@zitadel.com>
2022-11-14 15:24:36 +01:00
Livio Spring
d190567a20
fix issue template (#4690) 2022-11-11 12:40:25 +00:00
Fabi
6a25fb5155
add chat to GH issues (#4687)
Co-authored-by: Livio Spring <livio.a@gmail.com>
2022-11-11 07:40:31 +00:00
Livio Spring
5b4b29f8ce
fix issue template (#4689) 2022-11-10 15:55:21 +00:00
Fabi
cb22a7f39c
docs: bug report form (#4688)
* docs: bug report form

* docs: bug report form
2022-11-10 16:21:50 +01:00
Florian Forster
2e2d8020e5
chore: openSSF badge (#4686) 2022-11-10 15:16:09 +01:00