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 consumer #679

Merged
merged 47 commits into from
Feb 22, 2017
Merged

Oauth2 consumer #679

merged 47 commits into from
Feb 22, 2017

Commits on Jan 10, 2017

  1. initial stuff for oauth2 login, fails on:

    import cycle not allowed
    package main
    	imports code.gitea.io/gitea/cmd
    	imports code.gitea.io/gitea/models
    	imports code.gitea.io/gitea/modules/auth/oauth2
    	imports code.gitea.io/gitea/modules/context
    	imports code.gitea.io/gitea/models
    willemvd committed Jan 10, 2017
    Configuration menu
    Copy the full SHA
    ded3513 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2017

  1. login button on the signIn page to start the OAuth2 flow and a callba…

    …ck for each provider
    
    Only GitHub is implemented for now
    willemvd committed Jan 15, 2017
    Configuration menu
    Copy the full SHA
    1f94c85 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'upstream-master' into oauth2-consumer

    # Conflicts:
    #	public/js/index.js
    willemvd committed Jan 15, 2017
    Configuration menu
    Copy the full SHA
    642f36e View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2017

  1. fix indentation

    willemvd committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    f93aad8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    280913b View commit details
    Browse the repository at this point in the history
  3. show login button only when the OAuth2 consumer is configured (and ac…

    …tivated)
    
    remove the use of sessions in our own code for validating request
    willemvd committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    b597a86 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c2be7a View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'upstream/master' into oauth2-consumer

    # Conflicts:
    #	cmd/web.go
    willemvd committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    f392ce9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ba7833 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8e1ea96 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2017

  1. no support at this moment to use this and we should only consider imp…

    …lementing SkipVerify (waiting for markbates/goth#87)
    willemvd committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    6c98fa7 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2017

  1. Configuration menu
    Copy the full SHA
    caeb911 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3f3866 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    047d50b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab31c24 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2017

  1. Configuration menu
    Copy the full SHA
    fe88e87 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2017

  1. Merge remote-tracking branch 'upstream/master' into oauth2-consumer

    # Conflicts:
    #	vendor/vendor.json
    willemvd committed Jan 25, 2017
    Configuration menu
    Copy the full SHA
    827c512 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83c238b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c65a216 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    914f56a View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2017

  1. remove unused redirectURL

    willemvd committed Jan 26, 2017
    Configuration menu
    Copy the full SHA
    b4eb93c View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2017

  1. at startup of Gitea register all configured providers and also on add…

    …ing/deleting of new providers
    willemvd committed Jan 27, 2017
    Configuration menu
    Copy the full SHA
    7a6757f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aae5f80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9151dc8 View commit details
    Browse the repository at this point in the history
  4. more checks if provider exists and is active (less calls to db to che…

    …ck if provider exists)
    willemvd committed Jan 27, 2017
    Configuration menu
    Copy the full SHA
    96d1af5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c3f5d36 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2bf6b34 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7ccbc44 View commit details
    Browse the repository at this point in the history
  8. link a external account to an existing account (still need to handle …

    …wrong login and signup) and remove if user is removed
    willemvd committed Jan 27, 2017
    Configuration menu
    Copy the full SHA
    084c45f View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2017

  1. Configuration menu
    Copy the full SHA
    6594d76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19ddb15 View commit details
    Browse the repository at this point in the history
  3. add license header

    willemvd committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    57dbb74 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2017

  1. if user is unknown we allow him to register a new account or link it …

    …to some existing account
    willemvd committed Jan 31, 2017
    Configuration menu
    Copy the full SHA
    32a4c58 View commit details
    Browse the repository at this point in the history
  2. we are in 2017...

    willemvd committed Jan 31, 2017
    Configuration menu
    Copy the full SHA
    770ba31 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2017

  1. sign up with button on signin page (als change OAuth2Provider structu…

    …re so we can store basic stuff about providers)
    willemvd committed Feb 2, 2017
    Configuration menu
    Copy the full SHA
    527d6e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7381b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b64ee7d View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2017

  1. Merge remote-tracking branch 'upstream/master' into oauth2-consumer

    # Conflicts:
    #	models/migrations/migrations.go
    #	models/migrations/v16.go
    willemvd committed Feb 5, 2017
    Configuration menu
    Copy the full SHA
    5c5214a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    769c747 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2017

  1. from gorilla/sessions docs:

    "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
    (we're using gorilla/sessions for storing oauth2 sessions)
    willemvd committed Feb 6, 2017
    Configuration menu
    Copy the full SHA
    6b16f42 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2017

  1. fix missed password reset

    willemvd committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    0fa2e40 View commit details
    Browse the repository at this point in the history
  2. use updated goth lib that now supports getting the OAuth2 user if the…

    … AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
    willemvd committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    f54f07a View commit details
    Browse the repository at this point in the history
  3. Merge branch 'upstream-master' into oauth2-consumer

    # Conflicts:
    #	templates/user/auth/signup.tmpl
    willemvd committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    873e5b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    779e84b View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2017

  1. prepare merge

    willemvd committed Feb 21, 2017
    Configuration menu
    Copy the full SHA
    61fe261 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'upstream-master' into oauth2-consumer

    # Conflicts:
    #	models/migrations/migrations.go
    willemvd committed Feb 21, 2017
    Configuration menu
    Copy the full SHA
    66e28df View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2c11c44 View commit details
    Browse the repository at this point in the history