-
Notifications
You must be signed in to change notification settings - Fork 0
/
qgsauthsaml2edit.h
64 lines (43 loc) · 1.83 KB
/
qgsauthsaml2edit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/***************************************************************************
begin : October 15, 2017
copyright : (C) 2017 by Secure Dimensions GmbH, Germany
author : Andreas Matheus, Secure Dimensions GmbH
email : am at secure-dimensions dot de
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSAUTHSAML2EDIT_H
#define QGSAUTHSAML2EDIT_H
#include <QWidget>
#include "qgsauthmethodedit.h"
#include "ui_qgsauthsaml2edit.h"
#include "qgsauthconfig.h"
class QgsAuthSAML2Edit : public QgsAuthMethodEdit, private Ui::QgsAuthSAML2Edit
{
Q_OBJECT
public:
explicit QgsAuthSAML2Edit( QWidget *parent = nullptr );
virtual ~QgsAuthSAML2Edit();
bool validateConfig() override;
QgsStringMap configMap() const override;
public slots:
void loadConfig( const QgsStringMap &configmap ) override;
void resetConfig() override;
void clearConfig() override;
private slots:
void on_leUsername_textChanged( const QString& txt );
void on_chkPasswordShow_stateChanged( int state );
void onFedUrlChanged( const QString& url );
void loadFederationMetadata();
void parseFederationMetadata();
private:
QgsStringMap mConfigMap;
bool mValid;
void setupConnections();
};
#endif // QGSAUTHSAML2EDIT_H