mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 14:43:32 +08: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.5 KiB
XML
Executable file
1 line
No EOL
7.5 KiB
XML
Executable file
<svg width="100" height="60" viewBox="0 0 100 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>OkPay-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-450.000000, -689.000000)"><g id="OkPay-dark" transform="translate(450.000000, 689.000000)"><rect id="Rectangle" fill="#D2642C" x="0" y="0" width="100" height="60" rx="4"/><path d="M85.1174431,22.4053139 L83.9882627,22.4053139 C83.2657583,22.4053139 82.7293555,22.8902628 82.3136077,23.4820292 L81.1966095,25.0740438 C81.1959615,25.0747007 81.1959615,25.0753577 81.1953135,25.0760146 L78.7758634,28.5220292 L76.677944,25.5363942 C76.6683538,25.5214161 76.6632995,25.5077518 76.6524133,25.4922482 L75.2392855,23.4859708 C74.8225009,22.8947299 74.2807846,22.4105693 73.5584098,22.4105693 L72.5116532,22.4105693 C71.7891489,22.4105693 71.3210438,22.894073 71.7392539,23.484 L73.160676,25.4940876 C73.1637863,25.4980292 73.1676743,25.5019708 73.1709142,25.506438 L77.2169387,31.2186131 L77.2169387,37.6854745 C77.2169387,38.4095474 77.8084203,39.0006569 78.5310543,39 L79.0206725,38.9986861 C79.7433065,38.9981606 80.3347881,38.404292 80.3347881,37.680219 L80.3347881,31.2121752 L84.6449317,25.1285693 C84.6582802,25.1110949 84.6756462,25.094146 84.6883468,25.0760146 L85.8150648,23.4800584 C86.2331454,22.8889489 85.8399475,22.4053139 85.1174431,22.4053139" id="Fill-1" fill="#FFF"/><path d="M37.9536532,30.1809197 L42.0135447,26.2726861 C42.0323363,26.2558686 44.8834746,23.5113285 44.8834746,23.5113285 C45.3965499,23.0166569 44.8444658,22.4053139 44.1414011,22.4053139 L42.5976392,22.4053139 C41.8948336,22.4053139 41.5397373,22.8110365 41.0275692,23.3076788 L38.0223398,26.2209197 C38.0197478,26.2234161 38.0181926,26.2260438 38.0153415,26.2293285 L36.0814921,28.1039562 L36.0814921,25.9783796 L36.0731979,25.9783796 C36.0751419,25.9498686 36.0814921,25.9220146 36.0814921,25.8935036 L36.0814921,23.7225985 C36.0814921,22.9985255 35.5065989,22.4053139 34.8036637,22.4053139 L34.2296778,22.4053139 C33.5270018,22.4053139 32.9518494,22.9985255 32.9518494,23.7225985 L32.9518494,25.8935036 C32.9518494,25.9220146 32.9583292,25.9498686 32.9601436,25.9783796 L32.9518494,25.9783796 L32.9518494,37.6828467 C32.9518494,38.4069197 33.5270018,39 34.2296778,39 L34.8036637,39 C35.5065989,39 36.0814921,38.4069197 36.0814921,37.6828467 L36.0814921,32.4418248 L38.8365989,35.2766277 L38.8398389,35.2766277 L41.5517898,38.0699124 C42.0493135,38.5812701 42.3919685,39 43.0950333,39 L44.6407391,39 C45.3435447,39 45.6430438,38.1430949 45.1455201,37.6316058 L37.9536532,30.1809197" id="Fill-3" fill="#FFF"/><path d="M68.5185044,31.8052555 L65.4935762,31.8052555 C65.1303152,31.8052555 64.9456392,31.5310511 65.0818459,31.1953577 L66.7524834,27.1004234 C66.8894676,26.7647299 67.1138004,26.7647299 67.251303,27.0997664 L68.9297163,31.1960146 C69.0672189,31.5310511 68.8817653,31.8052555 68.5185044,31.8052555 L68.5185044,31.8052555 Z M74.5947986,37.3574015 L74.6025744,37.3574015 L69.3287461,24.2443358 L69.3261541,24.2443358 L69.0787531,23.6285255 C68.8089317,22.9556934 67.9936357,22.4053139 67.2672434,22.4053139 L66.7430228,22.4053139 C66.0166305,22.4053139 65.2019825,22.9563504 64.9341051,23.6298394 L64.6898144,24.2443358 L64.6808722,24.2443358 L59.4270018,37.2880292 L59.4288161,37.2880292 L59.230662,37.7781022 C58.9588967,38.4504088 59.3322662,39 60.0586585,39 L61.2344939,39 C61.9608862,39 62.3023748,38.4444964 62.5548301,37.7650949 L62.7319895,37.2880292 L62.7391173,37.2880292 L63.8010368,34.4637372 L70.2232259,34.4637372 L70.3101856,34.6905109 L70.374725,34.8254453 L71.3216918,37.3574015 L71.3249317,37.3574015 L71.4770788,37.7650949 C71.7303117,38.4444964 72.1740525,39 72.9010928,39 L73.9407215,39 C74.6677618,39 75.0391874,38.4509343 74.7661261,37.7794161 L74.5947986,37.3574015 L74.5947986,37.3574015 Z" id="Fill-4" fill="#FFF"/><path d="M58.2485744,28.630292 C58.1270123,28.9376058 57.9499825,29.1936788 57.71269,29.4041606 L57.715282,29.4016642 L57.713338,29.4041606 C57.2375867,29.8236788 56.5292084,30.0525547 55.5751138,30.0525547 L53.8519895,30.0525547 C53.4830263,30.0525547 53.181324,29.7562774 53.181324,29.3939124 L53.181324,25.7002336 C53.181324,25.3385255 53.4830263,25.0417226 53.8519895,25.0417226 L55.5751138,25.0417226 C56.5292084,25.0417226 57.2375867,25.2704672 57.71269,25.6911679 C57.9505009,25.9012555 58.1270123,26.1553577 58.2485744,26.4631971 C58.368711,26.7705109 58.4313065,27.1290657 58.4313065,27.5418832 C58.4313065,27.9587737 58.368711,28.3204818 58.2485744,28.630292 L58.2485744,28.630292 Z M61.3598144,29.7582482 C61.6283398,29.1112993 61.7607881,28.3704088 61.7607881,27.5418832 C61.7607881,26.719927 61.6283398,25.9835036 61.3598144,25.3404964 C61.0925849,24.6974891 60.6885009,24.1477664 60.1532644,23.7069635 C59.090697,22.8325839 57.5431769,22.4053139 55.5751138,22.4053139 L51.3161611,22.4053139 C50.5790123,22.4053139 49.9752189,22.9985255 49.9752189,23.7225985 L49.9752189,37.6828467 C49.9752189,38.4069197 50.5790123,39 51.3161611,39 L51.8403818,39 C52.5776602,39 53.181324,38.4069197 53.181324,37.6828467 L53.181324,32.6888321 L55.5751138,32.6888321 C57.5431769,32.6888321 59.090697,32.2649781 60.1526165,31.392438 C60.6865569,30.9541314 61.0925849,30.4038832 61.3598144,29.7582482 L61.3598144,29.7582482 Z" id="Fill-5" fill="#FFF"/><path d="M26.9997093,34.6595036 C26.5598564,35.2105401 26.0566305,35.6129781 25.475387,35.8800876 C24.8941436,36.1471971 24.2302172,36.2826569 23.4698704,36.2826569 C22.7077093,36.2826569 22.043394,36.1471971 21.4599475,35.8800876 C20.8742977,35.6129781 20.3688687,35.2065985 19.9249982,34.6549051 C19.4042767,34.0118978 19.0366095,33.2067591 18.8144799,32.2570949 L18.6094571,30.8745109 C18.6031068,30.7914745 18.5987005,30.6164672 18.5963678,30.4284526 C18.5922207,30.2313723 18.5900175,30.0123504 18.5900175,29.8334015 C18.5900175,29.6798102 18.5922207,29.5532847 18.5944238,29.5008613 L18.75331,28.118146 C18.9601471,27.0369635 19.3517898,26.1313139 19.9249982,25.4182774 L19.9225359,25.4227445 L19.9249982,25.4227445 C20.3688687,24.8665839 20.8742977,24.464146 21.4599475,24.1976934 C22.043394,23.9305839 22.7077093,23.7951241 23.4698704,23.7951241 C24.2302172,23.7951241 24.8941436,23.9305839 25.475387,24.1976934 C26.0566305,24.464146 26.5598564,24.8665839 26.9997093,25.4182774 C27.8795447,26.5210073 28.3363748,28.0695328 28.3363748,30.0434891 C28.3363748,32.0120584 27.8795447,33.5569051 26.9997093,34.6595036 L26.9997093,34.6595036 Z M29.4234361,23.5410219 C27.937993,21.9048613 25.9171839,21.0731825 23.4698704,21.077781 C21.0114116,21.0731825 18.9864553,21.9048613 17.4988091,23.5410219 C16.4035832,24.7401898 15.7114046,26.2584964 15.4259019,28.0520584 L15.4259019,28.0566569 L15.2931944,29.4697226 L15.2931944,29.4787883 C15.2842522,29.6583942 15.2737548,29.8418102 15.2737548,30.0434891 C15.2737548,30.3409489 15.2868441,30.6294745 15.3040806,30.9094599 L15.3040806,30.9185255 L15.4847391,32.3317226 L15.4847391,32.3361898 C15.7983643,33.9944234 16.4642347,35.4120876 17.4988091,36.5452993 C18.9864553,38.1729197 21.0114116,39.0045985 23.4698704,39 C25.9171839,39.0045985 27.937993,38.1729197 29.4234361,36.5367591 C30.8994186,34.9129489 31.6423993,32.7166861 31.6423993,30.0434891 C31.6423993,27.365562 30.9020105,25.1641752 29.4234361,23.5410219 L29.4234361,23.5410219 Z" id="Fill-6" fill="#FFF"/><polyline id="Fill-8" fill="#FFF" points="23.4267145 29.0431095 12.654725 29.0431095 13.6681751 27.0519416 24.4401646 27.0519416 23.4267145 29.0431095"/><polyline id="Fill-9" fill="#FFF" points="21.4084974 33.0259708 12 33.0259708 13.0674921 31.0345401 22.4759895 31.0345401 21.4084974 33.0259708"/></g></g></svg> |