mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +01:00
c18d9f5280
register page redirect user to dashboard if they are logged in enable csrf for login page Set models more strict bootstrap developer page add helper method to ModelMixin, remove CRUDMixin display list of clients on developer index, add copy client-secret to clipboard using clipboardjs add toastr and use jquery non slim display a toast when user copies the client-secret create new client, generate client-id using unidecode client detail page: can edit client add delete client implement /oauth/authorize and /oauth/allow-deny implement /oauth/token add /oauth/user_info endpoint handle scopes: wip take into account scope: display scope, return user data according to scope create virtual-domain, gen email, client_user model WIP create authorize_nonlogin_user page user can choose to generate a new email no need to interfere with root logger log for before and after request if user has already allowed a client: generate a auth-code and redirect user to client get_user_info takes into account gen email display list of clients that have user has authorised use yk-client domain instead of localhost as cookie depends on the domain name use wtforms instead of flask_wtf Dockerfile delete virtual domain EMAIL_DOMAIN can come from env var bind to host 0.0.0.0 fix signup error: use session as default csrf_context rename yourkey to simplelogin add python-dotenv, ipython, sqlalchemy_utils create DB_URI, FLASK_SECRET. Load config from CONFIG file if exist add shortcuts to logging create shell add psycopg2 do not add local data in Dockerfile add drop_db into shell add shell.prepare_db() fix prepare_db setup sentry copy assets from tabler/dist add icon downloaded from https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_key-tool-1.svg integrate tabler - login and register page add favicon template: default, header. Use gravatar for user avatar url use default template for dashboard, developer page use another icon add clipboard and notie prettify dashboard add notie css add fake gen email and client-user prettify list client page, use notie for toast add email, name scope to new client display client scope in client list prettify new-client, client-detail add sentry-sdk and blinker add arrow, add dt jinja filter, prettify logout, dashboard comment "last used" in dashboard for now prettify date display add copy email to clipboard to dashboard use "users" as table name for User as "user" is reserved key in postgres call prepare_db() when creating new db error page 400, 401, 403, 404 prettify authorize_login_user create already_authorize.html for user who has already authorized a client user can generate new email display all other generated emails add ENV variable, only reset DB when ENV=local fix: not return other users gen emails display nb users for each client refactor shell: remove prepare_db() add sendgrid add /favicon.ico route add new config: URL, SUPPORT_EMAIL, SENDGRID_API_KEY user needs to activate their account before login create copy button on dashboard client can have multiple redirect uris, in client detail can add/remove redirect-uri, use redirect_uri passed in /authorize refactor: move get_user_info into ClientUser model dashboard: display all apps, all generated emails add "id" into user_info add trigger email button invalidate the session at each new version by changing the secret centralize Client creation into Client.create_new user can enable/disable email forwarding setup auto dismiss alert: just add .alert-auto-dismiss move name down in register form add shell.add_real_data move blueprint template to its own package prettify authorize page for non-authenticated user update readme, return error if not redirect_uri add flask-wtf, use psycopg2-binary use flask-wtf FlaskForm instead of Form rename email -> email_utils add AWS_REGION, BUCKET, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to config add s3 module add File model, add Client.icon_id handle client icon update can create client with icon display client icon in client list page add Client.home_url take into account Client.home_url add boto3 register: ask name first only show "trigger test email" if email forwarding is enabled display gen email in alphabetical order, client in client.name alphabetical order better error page the modal does not get close when user clicks outside of modal add Client.published column discover page that displays all published Client add missing bootstrap.bundle.min.js.map developer can publish/unpublish their app in discover use notie for display flash message create hotmail account fix missing jquery add footer, add global jinja2 variable strengthen model: use nullable=False whenever possible, rename client_id to oauth_client_id, client_secret to oauth_client_secret add flask-migrate init migrate 1st migrate version fix rename client_id -> oauth_client_id prettify UI use flask_migrate.upgrade() instead of db.create_all() make sure requirejs.config is called for all page enable sentry for js, use uppercase for global jinja2 variables add flask-admin add User.is_admin column setup flask admin, only accessible to admin user fix migration: add server_default replace session[redirect_after_login] by "next" request args add pyproject.toml: ignore migrations/ in black add register waiting_activation_email page better email wording add pytest add get_host_name_and_scheme and tests example fail test fix test fix client-id display add flask-cors /user_info supports cors, add /me as /user_info synonym return client in /me support implicit flow no need to use with "app.app_context()" add watchtower to requirement add param ENABLE_CLOUDWATCH, CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM add cloudwatch logger if cloudwatch is enabled add 500 error page add help text for list of used client display list of app/website that an email has been used click on client name brings to client detail page create style.css to add additional style, append its url with the current sha1 to avoid cache POC on how to send email using postfix add sqlalchemy-utils use arrow instead of datetime add new params STRIPE_API, STRIPE_YEARLY_SKU, STRIPE_MONTHLY_PLAN show full error in local add plan, plan_expiration to User, need to create enum directly in migration script, cf https://github.com/sqlalchemy/alembic/issues/67 reformat all html files: use space instead of tab new user will have trial plan for 15 days add new param MAX_NB_EMAIL_FREE_PLAN only user with enough quota can create new email if user cannot create new gen email, pick randomly one from existing gen emails. Use flush instead of commit rename STRIPE_YEARLY_SKU -> STRIPE_YEARLY_PLAN open client page in discover in a new tab add stripe not logging /static call: disable flask logging, replace by after_request add param STRIPE_SECRET_KEY add 3 columns stripe_customer_id, stripe_card_token, stripe_subscription_id user can upgrade their pricing add setting page as coming-soon add GenEmail, ClientUser to admin ignore /admin/static logging add more fake data add ondelete="cascade" whenever possible rename plan_expiration -> trial_expiration reset migration: delete old migrations, create new one rename test_send_email -> poc_send_email to avoid the file being called by pytest add new param LYRA_ANALYTICS_ID, add lyra analytics add how to create new migration into readme add drift to base.html notify admin when new user signs up or pays subscription log exception in case of 500 use sendgrid to notify admin add alias /userinfo to user_info endpoint add change_password to shell add info on how payment is handled invite user to retry if card not working remove drift and add "contact us" link move poc_send_email into poc/ support getting client-id, client-secret from form-data in addition to basic auth client-id, client-secret is passed in form-data by passport-oauth2 for ex add jwtRS256 private and public key add jwk-jws-jwt poc add new param OPENID_PRIVATE_KEY_PATH, OPENID_PRIVATE_KEY_PATH add scope, redirect_url to AuthorizationCode and OauthToken take into scope when creating oauth-token, authorization-code add jwcrypto add jose_utils: make_id_token and verify_id_token add &scope to redirect uri add "email_verified": True into user_info fix user not activated add /oauth2 as alias for /oauth handle case where scope and state are empty remove threaded=False Use Email Alias as wording remove help text user can re-send activation email add "expired" into ActivationCode Handle the case activation code is expired reformat: use form.validate_on_submit instead of request.method == post && form.validate use error text instead of flash() display client oauth-id and oauth-secret on client detail page not display oauth-secret on client listing fix expiration check improve page title, footer add /jwks and /.well-known/openid-configuration init properly tests, fix blueprint conflict bug in flask-admin create oauth_models module rename Scope -> ScopeE to distinguish with Scope DB model set app.url_map.strict_slashes = False use ScopeE instead of SCOPE_NAME, ... support access_token passed as args in /userinfo merge /allow-deny into /authorize improve wording take into account the case response_type=code and openid is in scope take into account response_type=id_token, id_token token, id_token code make sure to use in-memory db in test fix scope can be null allow cross_origin for /.well-known/openid-configuration and /jwks fix footer link center authorize form rename trial_expiration to plan_expiration move stripe init to create_app() use real email to be able to receive email notification add user.profile_picture_id column use user profile picture and fallback to gravatar use nguyenkims+local@gm to distinguish with staging handle plan cancel, reactivation, user profile update fix can_create_new_email create cron.py that set plan to free when expired add crontab.yml add yacron use notify_admin instead of LOG.error add ResetPasswordCode model user can change password in setting increase display time for notie add forgot_password page If login error: redirect to this page upon success login. hide discover tab add column user.is_developer only show developer menu to developer comment out the publish button set local user to developer make sure only developer can access /developer blueprint User is invited to upgrade if they are in free plan or their trial ends soon not sending email when in local mode create Partner model create become partner page use normal error handling on local fix migration add "import sqlalchemy_utils" into migration template small refactoring on setting page handle promo code. TODO: add migration file add migration for user.promo_codes move email alias on top of apps in dashboard add introjs move encode_url to utils create GenEmail.create_new_gen_email create a first alias mail to show user how to use when they login show intro when user visits the website the first time fix register
1 line
No EOL
7.2 KiB
XML
Executable file
1 line
No EOL
7.2 KiB
XML
Executable file
<svg viewBox="0 0 462 461" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin"><title>android-browser</title><desc>Created with Sketch.</desc><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="android-browser" transform="translate(0.000000, -1.000000)"><circle id="ocean" fill="#377EF0" cx="230.5" cy="231.5" r="230.5"/><path d="M127.115,95.221 C125.093,93.791 123.071,92.36 121.049,90.93 C120.279,90.343 119.344,89.118 118.764,89.268 C113.901,90.529 108.728,91.378 104.461,93.791 C102.655,94.812 102.857,99.294 102.034,102.171 C101.322,104.658 101.162,108.321 99.494,109.291 C96.628,110.957 96.157,112.758 95.936,115.608 C95.678,118.926 95.639,122.897 93.824,125.331 C89.678,130.892 84.293,135.512 79.868,140.89 C78.277,142.824 77.139,145.887 77.293,148.341 C77.602,153.25 79.218,158.065 79.727,162.977 C79.933,164.958 78.651,167.094 78.047,169.159 C76.263,168.592 73.753,168.574 72.833,167.355 C70.158,163.81 68.121,159.784 65.833,155.947 C63.366,153.141 48.123,151.121 44.982,153.952 C40.276,158.193 35.399,157.218 30.161,156.184 C23.529,154.876 17.942,159.393 18.066,166.047 C18.173,171.811 19.357,177.653 18.696,183.3 C18.249,187.118 19.127,189.221 21.965,191.1 C24.342,192.897 26.677,194.753 29.105,196.478 C32.374,198.801 36.637,199.154 38.44,195.886 C42.681,188.195 48.667,191.394 55.353,191.628 C53.943,195.173 52.787,198.009 51.684,200.865 C49.816,205.7 50.654,207.204 55.645,208.007 C59.26,208.589 62.991,208.791 66.446,209.874 C67.936,210.341 69.676,212.505 69.87,214.076 C70.252,217.161 69.743,220.382 69.398,223.525 C68.922,227.873 70.742,229.742 74.919,231.449 C84.992,235.566 94.092,234.627 103.352,229.243 C111.228,224.664 119.994,227.651 128.375,227.322 C133.985,227.103 138.43,228.921 141.586,233.665 C142.04,234.349 142.78,234.838 143.273,235.503 C149.92,244.473 158.584,250.014 169.82,251.262 C173.653,251.688 176.291,253.775 177.569,257.401 C183.038,272.917 193.852,281.494 210.191,284.006 C217.363,285.108 224.298,287.928 231.23,290.292 C233.043,290.91 234.442,292.739 236.031,294.011 C237.613,307.595 234.075,319.474 224.866,329.798 C222.941,331.955 222.307,335.414 221.511,338.39 C220.437,342.404 220.186,346.674 218.809,350.561 C217.829,353.33 216.064,356.274 213.794,358.045 C208.293,362.338 202.423,366.208 196.447,369.828 C192.441,372.255 190.779,375.162 190.864,379.949 C190.917,382.939 189.837,386.685 187.89,388.858 C172.652,405.852 157.097,422.562 141.584,439.308 C140.262,440.735 138.533,441.783 136.993,443.008 C126.626,437.38 116.259,431.752 105.891,426.125 C106.957,413.848 108.003,401.57 109.096,389.297 C110.056,378.519 111.26,367.758 111.918,356.963 C112.078,354.343 111.324,350.756 109.579,349.111 C105.254,345.035 99.856,342.116 95.399,338.157 C92.808,335.855 90.683,332.675 89.261,329.484 C86.223,322.665 84.477,315.198 80.915,308.702 C76.42,300.506 74.578,292.218 74.932,282.951 C75.129,277.788 75.912,273.318 79.957,270.065 C85.877,265.306 87.668,259.213 86.691,251.965 C86.537,250.824 86.663,249.633 86.759,248.473 C87.091,244.452 84.579,241.972 81.261,242.187 C71.793,242.798 65.067,236.737 57.337,233.189 C55.908,232.533 54.212,230.03 54.42,228.649 C55.434,221.942 51.588,218.566 46.645,215.567 C44.376,214.19 42.459,212.174 40.103,211.016 C37.254,209.616 34.127,207.996 31.088,207.929 C24.296,207.779 17.477,208.895 10.682,208.768 C7.224,208.703 2.776,209.536 0.874,204.875 C2.115,185.008 7.75,166.177 14.688,147.711 C22.78,126.173 34.084,106.322 48.355,88.334 C67.23,64.544 89.743,44.797 116.485,30.141 C122.504,26.843 128.761,23.981 134.909,20.918 C136.881,24.95 139.153,28.868 140.733,33.048 C142.058,36.553 143.4,39.266 147.234,41.007 C152.416,43.36 157.66,46.211 159.885,52.171 C160.787,54.799 161.689,57.426 162.663,60.259 C161.622,60.75 160.655,61.405 159.591,61.673 C152.343,63.499 145.409,65.634 140.327,71.854 C139.064,73.402 135.894,73.721 133.534,73.964 C130.215,74.306 126.833,74.051 123.479,74.051 C123.422,74.728 123.366,75.405 123.31,76.083 C127.23,79.553 132.584,77.387 137.058,78.68 C140.319,81.423 143.58,84.165 146.841,86.908 C141.808,93.338 135.426,96.569 127.115,95.221 Z M415.005,370.089 C410.114,360.858 405.145,351.668 400.399,342.363 C399.487,340.573 398.523,337.962 399.164,336.363 C403.221,326.239 401.74,315.713 401.992,305.314 C402.064,302.322 401.83,299.316 402.04,296.338 C402.381,291.516 401.65,287.071 398.394,283.304 C394.099,278.337 395.408,272.323 395.291,266.598 C395.143,259.367 394.784,258.671 387.645,259.005 C383.093,259.219 380.024,257.917 378.012,253.774 C377.006,251.704 375.48,249.886 374.189,247.953 C370.468,244.946 362.505,244.428 358.57,247.818 C350.806,254.506 342.149,257.461 331.998,256.057 C331.351,255.967 330.671,256.117 330.006,256.155 C326.479,256.45 324.667,254.525 323.238,251.505 C317.696,239.788 312.359,227.944 302.244,219.114 C300.897,217.937 300.365,215.25 300.328,213.246 C300.139,203.267 300.124,193.279 300.327,183.3 C300.375,180.916 300.976,178.236 302.208,176.238 C307.033,168.421 310.631,159.572 320.104,155.522 C321.76,154.814 322.831,151.21 323.007,148.857 C323.545,141.655 327.391,136.903 334.502,135.629 C334.665,135.6 334.831,135.563 334.996,135.564 C345.938,135.65 354.584,130.713 362.56,123.677 C364.796,121.705 368.438,120.664 371.521,120.45 C378.31,119.98 385.156,120.36 391.977,120.292 C395.302,120.26 397.154,121.175 395.941,124.968 C392.386,136.084 395.045,134.831 403.724,137.676 C410.204,139.801 416.753,141.723 423.18,143.995 C427.7,145.592 430.117,144.179 431.235,139.643 C431.91,136.906 432.672,134.108 433.985,131.652 C434.513,130.665 436.621,130.522 438.01,129.994 C447.835,148.512 454.155,168.29 457.813,188.807 C469.233,252.868 456.071,311.69 419.163,365.226 C417.959,366.973 416.399,368.474 415.005,370.089 Z M431.235,116.811 C429.205,115.868 427.108,115.046 425.157,113.961 C415.728,108.714 406.338,103.397 396.934,98.104 C390.898,93.665 383.725,95.959 377.132,94.811 C372.881,94.07 370.63,95.834 370.537,100.538 C370.507,102.078 368.369,105.002 367.571,104.877 C360.96,103.844 358.458,108.258 355.821,112.824 C354.243,115.557 352.17,118.023 350.769,120.833 C348.717,124.949 345.739,126.774 341.185,125.881 C334.263,125.047 330.422,119.626 326.175,115.173 C324.765,113.693 324.836,110.228 325.138,107.783 C326.878,93.69 324.783,95.891 338.391,95.148 C341.382,94.985 344.444,95.259 347.352,94.702 C350.034,94.189 354.274,93.384 354.805,91.734 C356.106,87.696 357.114,82.835 353.063,79.198 C350.238,76.661 347.334,74.21 343.766,71.115 C345.718,70.65 346.869,70.376 348.02,70.102 C350.002,70.302 352.006,70.379 353.963,70.725 C360.921,71.956 366.532,70.055 371.249,64.555 C374.023,61.321 377.695,58.859 380.963,56.049 C401.354,73.297 418.056,93.596 431.235,116.811 Z M346.291,64.827 C344.016,64.479 341.741,64.131 338.564,63.646 C339.393,60.104 340.478,56.857 340.838,53.531 C341.18,50.36 341.4,46.929 340.553,43.927 C338.754,37.548 336.228,31.373 334,25.115 C344.643,31.434 355.287,37.753 365.93,44.072 C365.259,49.635 364.451,55.186 363.967,60.766 C363.664,64.264 361.771,65.195 358.676,65.081 C354.55,64.929 350.419,64.905 346.291,64.827 Z M193.993,26.05 C187.752,27.079 183.418,24.342 179.805,19.433 C176.894,15.478 173.419,11.938 170.195,8.214 C184.799,5.807 199.403,3.4 214.007,0.994 C212.21,3.129 210.438,5.286 208.611,7.396 C204.24,12.444 197.041,16.129 201.097,24.993 C198.216,25.422 196.105,25.736 193.993,26.05 Z" id="land" fill="#C3D8FA"/></g></g></svg> |